public class UniversalJob extends Job
Job.Inform, Job.Key, Job.Priority, Job.Type
endTime, finished, LOCALDEBUGFLAG, MIN_NUM_SECONDS, reportExecution, startTime
Constructor and Description |
---|
UniversalJob(java.lang.String jobName,
java.lang.Runnable doIt) |
UniversalJob(java.lang.String jobName,
java.lang.Runnable doIt,
java.lang.Runnable terminateOK) |
Modifier and Type | Method and Description |
---|---|
boolean |
doIt()
This is the main work method.
|
void |
terminateOK()
This method executes in the Client side after normal termination of doIt method.
|
abort, checkAbort, fieldVariableChanged, getAllJobs, getDatabase, getDebug, getDeleteWhenDone, getEditingPreferences, getEnvironment, getExtendedUserInterface, getInfo, getInform, getKey, getRunningJob, getScheduledToAbort, getStatus, getTechPool, getTool, getUserInterface, initJobManager, inServerThread, isClientThread, isFinished, pipeClient, pipeServer, remove, setCurrentLibraryInJob, setDebug, setProgress, setReportExecutionFlag, socketClient, startJob, startJob, startJobOnMyResult, terminateFail, terminateIt, toString, updateIncrementalDRCErrors, updateNetworkErrors
public UniversalJob(java.lang.String jobName, java.lang.Runnable doIt)
jobName
- a name of the JobdoIt
- the task to run on a serverpublic UniversalJob(java.lang.String jobName, java.lang.Runnable doIt, java.lang.Runnable terminateOK)
jobName
- a name of the JobdoIt
- the task to run on a serverterminateOK
- the task to run on a clientpublic boolean doIt()
Job
public void terminateOK()
Job
terminateOK
in class Job