org.quartz.examples
Class StatefulDumbJob

java.lang.Object
  extended byorg.quartz.examples.StatefulDumbJob
All Implemented Interfaces:
Job, StatefulJob

public class StatefulDumbJob
extends java.lang.Object
implements StatefulJob

A dumb implementation of Job, for unittesting purposes.

Author:
James House

Field Summary
static java.lang.String EXECUTION_DELAY
           
static java.lang.String NUM_EXECUTIONS
           
 
Constructor Summary
StatefulDumbJob()
           
 
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

NUM_EXECUTIONS

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

EXECUTION_DELAY

public static final java.lang.String EXECUTION_DELAY
See Also:
Constant Field Values
Constructor Detail

StatefulDumbJob

public StatefulDumbJob()
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