|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quartz.examples.DumbDelayJob
org.quartz.examples.DumbRecoveryJob
A dumb implementation of Job, for unittesting purposes.
This jobs prints a different message if it detects that it is executing as a recovery. It pauses (sleeps) for a few seconds within its execute method, so that there's a good chance it will be running when a scheduler dies.
Field Summary |
Fields inherited from class org.quartz.examples.DumbDelayJob |
DEFAULT_DELAY, KEY_DELAY |
Constructor Summary | |
DumbRecoveryJob()
|
Method Summary | |
void |
execute(JobExecutionContext context)
Called by the when a
fires that is associated with the Job . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DumbRecoveryJob()
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
execute
in class DumbDelayJob
JobExecutionException
- if there is an exception while executing the job.
|
Quartz Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |