org.quartz.examples
Class DumbDelayJob

java.lang.Object
  extended byorg.quartz.examples.DumbDelayJob
All Implemented Interfaces:
Job
Direct Known Subclasses:
DumbRecoveryJob

public class DumbDelayJob
extends java.lang.Object
implements Job

A dumb implementation of Job, for unittesting purposes.

This job includes a short pause during its execution.

Author:
James House

Field Summary
static long DEFAULT_DELAY
           
static java.lang.String KEY_DELAY
           
 
Constructor Summary
DumbDelayJob()
           
 
Method Summary
 void execute(JobExecutionContext context)
           Called by the Scheduler when a Trigger 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
 

Field Detail

KEY_DELAY

public static final java.lang.String KEY_DELAY
See Also:
Constant Field Values

DEFAULT_DELAY

public static final long DEFAULT_DELAY
See Also:
Constant Field Values
Constructor Detail

DumbDelayJob

public DumbDelayJob()
Method Detail

execute

public void execute(JobExecutionContext context)
             throws JobExecutionException

Called by the Scheduler when a Trigger fires that is associated with the Job.

Specified by:
execute in interface Job
Returns:
void (nothing) if job is successful.
Throws:
JobExecutionException - if there is an exception while executing the job.

Quartz Project Page