Package org.quartz.listeners
Interface JobListener
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
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of theJobListener.voidjobExecutionVetoed(JobExecutionContext context) Called by thewhen aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListenervoidjobToBeExecuted(JobExecutionContext context) voidjobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
-
Method Details
-
getName
String getName()Get the name of theJobListener. -
jobToBeExecuted
Called by thewhen aScheduleris about to be executed (an associatedJobDetailhas occurred).TriggerThis method will not be invoked if the execution of the Job was vetoed by a
.TriggerListener- See Also:
-
jobExecutionVetoed
Called by thewhen aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListener- See Also:
-
jobWasExecuted
-