Package org.quartz
Interface JobListener
-
- All Known Implementing Classes:
BroadcastJobListener
,JobChainingJobListener
,JobListenerSupport
,LoggingJobHistoryPlugin
,QuartzSchedulerMBeanImpl
,SampledStatisticsImpl
public interface JobListener
The interface to be implemented by classes that want to be informed when a
executes. In general, applications that use aJobDetail
Scheduler
will 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.String
getName()
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 Detail
-
getName
java.lang.String getName()
Get the name of the
JobListener
.
-
jobToBeExecuted
void jobToBeExecuted(JobExecutionContext context)
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(JobExecutionContext)
-
jobExecutionVetoed
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
- See Also:
jobToBeExecuted(JobExecutionContext)
-
jobWasExecuted
void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
-
-