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
.void
jobExecutionVetoed
(JobExecutionContext context) Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
void
jobToBeExecuted
(JobExecutionContext context) void
jobWasExecuted
(JobExecutionContext context, JobExecutionException jobException)
-
Method Details
-
getName
String getName()Get the name of theJobListener
. -
jobToBeExecuted
Called by the
when aScheduler
is about to be executed (an associatedJobDetail
has occurred).Trigger
This method will not be invoked if the execution of the Job was vetoed by a
TriggerListener
- See Also:
-
jobExecutionVetoed
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
- See Also:
-
jobWasExecuted
-