Package org.quartz
Interface JobListener
-
- All Known Implementing Classes:
BroadcastJobListener,JobChainingJobListener,JobListenerSupport,LoggingJobHistoryPlugin,QuartzSchedulerMBeanImpl,SampledStatisticsImpl
public interface JobListenerThe interface to be implemented by classes that want to be informed when aexecutes. In general, applications that use aJobDetailSchedulerwill not have use for this mechanism.- Author:
- James House
- See Also:
ListenerManager.addJobListener(JobListener, Matcher),Matcher,Job,JobExecutionContext,JobExecutionException,TriggerListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()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 Detail
-
getName
java.lang.String getName()
Get the name of the
JobListener.
-
jobToBeExecuted
void jobToBeExecuted(JobExecutionContext context)
Called by the
when 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(JobExecutionContext)
-
jobExecutionVetoed
void jobExecutionVetoed(JobExecutionContext context)
Called by the
when aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListener- See Also:
jobToBeExecuted(JobExecutionContext)
-
jobWasExecuted
void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
-
-