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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Override and place any code in here that should be called no matter what after the Job runs or throws an exception.abstract void
doRun()
final void
execute
(JobExecutionContext jobExecutionContext) void
Called by the
when a user interrupts theScheduler
Job
.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:Job
Called by the
when aScheduler
fires that is associated with theTrigger
Job
.The implementation may wish to set a
result
object on theJobExecutionContext
before this method exits. The result itself is meaningless to Quartz, but may be informative to
orJobListener
sTriggerListener
s- Specified by:
execute
in interfaceJob
- Throws:
JobExecutionException
- if there is an exception while executing the job.
-
interrupt
public void interrupt()Description copied from interface:InterruptableJob
Called by the
when a user interrupts theScheduler
Job
.- Specified by:
interrupt
in 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
-