org.quartz.listeners
Class JobListenerSupport

java.lang.Object
  extended by org.quartz.listeners.JobListenerSupport
All Implemented Interfaces:
JobListener
Direct Known Subclasses:
JobChainingJobListener

public abstract class JobListenerSupport
extends Object
implements JobListener

A helpful abstract base class for implementors of JobListener.

The methods in this class are empty so you only need to override the subset for the JobListener events you care about.

You are required to implement JobListener.getName() to return the unique name of your JobListener.

See Also:
JobListener

Constructor Summary
JobListenerSupport()
           
 
Method Summary
protected  org.slf4j.Logger getLog()
          Get the Logger for this class's category.
 void jobExecutionVetoed(JobExecutionContext context)
           Called by the Scheduler when a JobDetail was about to be executed (an associated Trigger has occurred), but a TriggerListener vetoed it's execution.
 void jobToBeExecuted(JobExecutionContext context)
           Called by the Scheduler when a JobDetail is about to be executed (an associated Trigger has occurred).
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.quartz.JobListener
getName
 

Constructor Detail

JobListenerSupport

public JobListenerSupport()
Method Detail

getLog

protected org.slf4j.Logger getLog()
Get the Logger for this class's category. This should be used by subclasses for logging.


jobToBeExecuted

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

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

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 context)
Description copied from interface: JobListener

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

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

jobWasExecuted

public void jobWasExecuted(JobExecutionContext context,
                           JobExecutionException jobException)
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 2001-2015, Terracotta, Inc.