org.quartz.examples.example9
Class Job1Listener

java.lang.Object
  extended by org.quartz.examples.example9.Job1Listener
All Implemented Interfaces:
JobListener

public class Job1Listener
extends Object
implements JobListener

Author:
wkratzer TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
Job1Listener()
           
 
Method Summary
 String getName()
           Get the name of the JobListener.
 void jobExecutionVetoed(JobExecutionContext inContext)
           Called by the Scheduler when a JobDetail was about to be executed (an associated Trigger has occured), but a TriggerListener vetoed it's execution.
 void jobToBeExecuted(JobExecutionContext inContext)
           Called by the Scheduler when a JobDetail is about to be executed (an associated Trigger has occured).
 void jobWasExecuted(JobExecutionContext inContext, JobExecutionException inException)
           Called by the Scheduler after a JobDetail has been executed, and be for the associated Trigger's triggered(xx) method has been called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job1Listener

public Job1Listener()
Method Detail

getName

public String getName()
Description copied from interface: JobListener

Get the name of the JobListener.

Specified by:
getName in interface JobListener

jobToBeExecuted

public void jobToBeExecuted(JobExecutionContext inContext)
Description copied from interface: JobListener

Called by the Scheduler when a JobDetail is about to be executed (an associated Trigger has occured).

This method will not be invoked if the execution of the Job was vetoed by a TriggerListener.

Specified by:
jobToBeExecuted in interface JobListener
See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)

jobExecutionVetoed

public void jobExecutionVetoed(JobExecutionContext inContext)
Description copied from interface: JobListener

Called by the Scheduler when a JobDetail was about to be executed (an associated Trigger has occured), but a TriggerListener vetoed it's execution.

Specified by:
jobExecutionVetoed in interface JobListener
See Also:
JobListener.jobToBeExecuted(JobExecutionContext)

jobWasExecuted

public void jobWasExecuted(JobExecutionContext inContext,
                           JobExecutionException inException)
Description copied from interface: JobListener

Called by the Scheduler after a JobDetail has been executed, and be for the associated Trigger's triggered(xx) method has been called.

Specified by:
jobWasExecuted in interface JobListener


Copyright © 2010. All Rights Reserved.