de.tum.binfo.jdrm
Class JobTemplate
java.lang.Object
de.tum.binfo.jdrm.JobTemplate
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class JobTemplate
- extends java.lang.Object
- implements java.io.Serializable
All jobs doing something must be derived from this class.
The actual work should be done or started within the method 'run'.
The variable 'uniqueName' should contain a unique name of the job within your working session.
The variable 'filename' will be used by the session-object to generate the filenames
(=pathOfSessionFiles+sessionName+"."+filename + [in.gz / out.gz ])
If no filename is given the uniqueName is used. If no uniqueName is given too, a random filename is generated
Note: both variables will be processed in the moment when you submit your job. Therefore they must not be changed afterwards.
Tip:
The session-methods 'existJob' will either identify the jobs via the uniqueName or via a unique hashcode (within your session)
which should be returned by the method 'hashCode()'
- Author:
- Thorsten Schmidt
- See Also:
- Serialized Form
Method Summary |
abstract int |
hashCode()
|
abstract void |
run()
Here the actual work should be done or started. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
uniqueName
public java.lang.String uniqueName
filename
public java.lang.String filename
JobTemplate
public JobTemplate()
hashCode
public abstract int hashCode()
run
public abstract void run()
throws java.lang.Exception
- Here the actual work should be done or started.
This method will be called by the Executor class.
- Throws:
java.lang.Exception
Copyright (c) 2004 Technische Universitaet Muenchen, Schmidt Thorsten