com.sun.electric.tool
Class UniversalJob

java.lang.Object
  extended by com.sun.electric.tool.Job
      extended by com.sun.electric.tool.UniversalJob
All Implemented Interfaces:
java.io.Serializable

public class UniversalJob
extends Job

Job executing given tasks on a server and then on a client

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.tool.Job
Job.Mode, Job.Priority, Job.Type
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.Job
BATCHMODE, endTime, LOCALDEBUGFLAG, startTime
 
Constructor Summary
UniversalJob(java.lang.String jobName, java.lang.Runnable doIt)
           
UniversalJob(java.lang.String jobName, java.lang.Runnable doIt, java.lang.Runnable terminateOK)
           
 
Method Summary
 boolean doIt()
          This is the main work method.
 void terminateOK()
          This method executes in the Client side after normal termination of doIt method.
 
Methods inherited from class com.sun.electric.tool.Job
abort, acquireExamineLock, checkAbort, fieldVariableChanged, getAllJobs, getDatabase, getDebug, getDeleteWhenDone, getDisplay, getExtendedUserInterface, getInfo, getNumThreads, getRunMode, getRunningJob, getScheduledToAbort, getStatus, getUserInterface, initJobManager, invokeExamineLater, isFinished, releaseExamineLock, remove, setDebug, setProgress, setReportExecutionFlag, setThreadMode, startJob, startJob, startJobOnMyResult, terminateFail, terminateIt, threadDatabase, toString, updateIncrementalDRCErrors, updateNetworkErrors, wantUpdateGui
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniversalJob

public UniversalJob(java.lang.String jobName,
                    java.lang.Runnable doIt)
Parameters:
jobName - a name of the Job
doIt - the task to run on a server

UniversalJob

public UniversalJob(java.lang.String jobName,
                    java.lang.Runnable doIt,
                    java.lang.Runnable terminateOK)
Parameters:
jobName - a name of the Job
doIt - the task to run on a server
terminateOK - the task to run on a client
Method Detail

doIt

public boolean doIt()
Description copied from class: Job
This is the main work method. This method should perform all needed tasks.

Specified by:
doIt in class Job

terminateOK

public void terminateOK()
Description copied from class: Job
This method executes in the Client side after normal termination of doIt method. This method should perform all needed termination actions.

Overrides:
terminateOK in class Job