Package org.knowm.sundial
Class JobAction
java.lang.Object
org.knowm.sundial.JobContainer
org.knowm.sundial.JobAction
A JobAction encapsulates business logic that can be reused in more than one place. Extenders of
JobAction have access to the JobContext and Job logging functions.
- Author:
- timothy.molter
-
Constructor Summary
-
Method Summary
Methods inherited from class org.knowm.sundial.JobContainer
checkTerminated, destroyContext, getJobContext, initContextContainer, setTerminate
-
Constructor Details
-
JobAction
public JobAction()
-
-
Method Details
-
run
public void run()Call this method to start the Action -
cleanup
public void cleanup()Override and place any code in here that should be called no matter what after the Job runs or throws an exception. -
doRun
public abstract void doRun()Implement this method. Don't not call it directly.
-