|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quartz.examples.example7.DumbInterruptableJob
public class DumbInterruptableJob
A dumb implementation of an InterruptableJob, for unittesting purposes.
Constructor Summary | |
---|---|
DumbInterruptableJob()
Empty constructor for job initilization |
Method Summary | |
---|---|
void |
execute(JobExecutionContext context)
Called by the when a
fires that is associated with the Job . |
void |
interrupt()
Called by the when a user
interrupts the Job . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DumbInterruptableJob()
Empty constructor for job initilization
Method Detail |
---|
public void execute(JobExecutionContext context) throws JobExecutionException
Called by the
when a Scheduler
fires that is associated with the Trigger
Job
.
execute
in interface Job
JobExecutionException
- if there is an exception while executing the job.public void interrupt() throws UnableToInterruptJobException
Called by the
when a user
interrupts the Scheduler
Job
.
interrupt
in interface InterruptableJob
JobExecutionException
- if there is an exception while interrupting the job.
UnableToInterruptJobException
- if there is an exception while interrupting the job.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |