org.quartz.examples.example6
Class BadJob1

java.lang.Object
  extended by org.quartz.examples.example6.BadJob1
All Implemented Interfaces:
Job, StatefulJob

public class BadJob1
extends Object
implements StatefulJob

A job dumb job that will throw a job execution exception

Author:
Bill Kratzer

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

Constructor Detail

BadJob1

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


Copyright © 2010. All Rights Reserved.