public interface JobListener
The interface to be implemented by classes that want to be informed when a
executes. In general,
applications that use a JobDetail
Scheduler
will not have use for this
mechanism.
Scheduler
,
Job
,
JobExecutionContext
,
JobExecutionException
,
TriggerListener
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the
JobListener . |
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the
when a
was about to be executed (an associated
has occured), but a vetoed it's
execution. |
void |
jobToBeExecuted(JobExecutionContext context)
|
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
|
java.lang.String getName()
Get the name of the JobListener
.
void jobToBeExecuted(JobExecutionContext context)
Called by the
when a Scheduler
is about to be executed (an associated JobDetail
has occured).
Trigger
This method will not be invoked if the execution of the Job was vetoed
by a
.
TriggerListener
void jobExecutionVetoed(JobExecutionContext context)
Called by the
when a Scheduler
was about to be executed (an associated JobDetail
has occured), but a Trigger
vetoed it's
execution.
TriggerListener
jobToBeExecuted(JobExecutionContext)
void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)