org.quartz
Interface JobListener

All Known Implementing Classes:
FilterAndBroadcastJobListener, JobChainingJobListener, JobListenerSupport, LoggingJobHistoryPlugin, QuartzSchedulerMBeanImpl, SampledStatisticsImpl

public interface JobListener

The interface to be implemented by classes that want to be informed when a JobDetail executes.

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

Method Summary
 java.lang.String getName()
           Get the name of the JobListener.
 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.
 

Method Detail

getName

java.lang.String getName()

Get the name of the JobListener.


jobToBeExecuted

void jobToBeExecuted(JobExecutionContext context)

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.

See Also:
jobExecutionVetoed(JobExecutionContext)

jobExecutionVetoed

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.

See Also:
jobToBeExecuted(JobExecutionContext)

jobWasExecuted

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 2001-2019, Terracotta, Inc.