org.quartz.examples.example7
Class DumbInterruptableJob

java.lang.Object
  extended by org.quartz.examples.example7.DumbInterruptableJob
All Implemented Interfaces:
InterruptableJob, Job

public class DumbInterruptableJob
extends Object
implements InterruptableJob

A dumb implementation of an InterruptableJob, for unittesting purposes.

Author:
Chris Bonham, Bill Kratzer

Constructor Summary
DumbInterruptableJob()
           Empty constructor for job initilization
 
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()

Empty constructor for job initilization

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
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
Throws:
JobExecutionException - if there is an exception while interrupting the job.
UnableToInterruptJobException - if there is an exception while interrupting the job.


Copyright © 2010. All Rights Reserved.