org.quartz.examples
Class DumbInterruptableJob

java.lang.Object
  extended byorg.quartz.examples.DumbInterruptableJob
All Implemented Interfaces:
InterruptableJob, Job

public class DumbInterruptableJob
extends java.lang.Object
implements InterruptableJob

A dumb implementation of an InterruptableJob, for unittesting purposes.

Author:
Chris Bonham, James House

Constructor Summary
DumbInterruptableJob()
           
 
Method Summary
 void execute(JobExecutionContext context)
           Called by the Scheduler when a Trigger fires that is associated with the Job.
 void interrupt()
           Called by the Scheduler 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

DumbInterruptableJob

public DumbInterruptableJob()
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.

interrupt

public void interrupt()
               throws UnableToInterruptJobException

Called by the Scheduler when a user interrupts the Job.

Specified by:
interrupt in interface InterruptableJob
Returns:
void (nothing) if job interrupt is successful.
Throws:
JobExecutionException - if there is an exception while interrupting the job.
UnableToInterruptJobException - if there is an exception while interrupting the job.

Quartz Project Page