org.quartz
Interface JobListener

All Known Implementing Classes:
LoggingJobHistoryPlugin

public interface JobListener

The interface to be implemented by classes that want to be informed when a JobDetail executes. In general, applications that use a Scheduler will not have use for this mechanism.

Author:
James House
See Also:
Scheduler, Job, JobExecutionContext, JobExecutionException, TriggerListener

Method Summary
 java.lang.String getName()
          Get the name of the JobListener.
 void jobToBeExecuted(JobExecutionContext context)
          Called by the Scheduler when a JobDetail is about to be executed (an associated Trigger has occured).
 void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
          Called by the Scheduler after a JobDetail has been executed, and be for the associated Trigger's triggered(xx) method has been called.
 

Method Detail

getName

public java.lang.String getName()

Get the name of the JobListener.


jobToBeExecuted

public void jobToBeExecuted(JobExecutionContext context)

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


jobWasExecuted

public void jobWasExecuted(JobExecutionContext context,
                           JobExecutionException jobException)

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



Copyright James House (c) 2001-2004