Package org.knowm.sundial
Class Job
java.lang.Object
org.knowm.sundial.JobContainer
org.knowm.sundial.Job
- All Implemented Interfaces:
InterruptableJob,Job
- Author:
- timmolter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Override and place any code in here that should be called no matter what after the Job runs or throws an exception.abstract voiddoRun()final voidexecute(JobExecutionContext jobExecutionContext) voidCalled by thewhen a user interrupts theSchedulerJob.Methods inherited from class org.knowm.sundial.JobContainer
checkTerminated, destroyContext, getJobContext, initContextContainer, setTerminate
-
Constructor Details
-
Job
public Job()Required no-arg constructor
-
-
Method Details
-
execute
Description copied from interface:JobCalled by thewhen aSchedulerfires that is associated with theTriggerJob.The implementation may wish to set a
resultobject on theJobExecutionContextbefore this method exits. The result itself is meaningless to Quartz, but may be informative toorJobListenersthat are watching the job's execution.TriggerListeners- Specified by:
executein interfaceJob- Throws:
JobExecutionException- if there is an exception while executing the job.
-
interrupt
public void interrupt()Description copied from interface:InterruptableJobCalled by thewhen a user interrupts theSchedulerJob.- Specified by:
interruptin interfaceInterruptableJob
-
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
- Throws:
JobInterruptException
-