public abstract class JobListenerSupport extends Object implements JobListener
JobListener.
The methods in this class are empty so you only need to override the
subset for the events
you care about.
JobListener
You are required to implement
to return the unique name of your JobListener.getName()JobListener.
JobListener| Constructor and Description |
|---|
JobListenerSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected org.slf4j.Logger |
getLog()
Get the
for this
class's category. |
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the
when a
was about to be executed (an associated
has occurred), but a vetoed it's
execution. |
void |
jobToBeExecuted(JobExecutionContext context)
|
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameprotected org.slf4j.Logger getLog()
Logger for this
class's category. This should be used by subclasses for logging.public void jobToBeExecuted(JobExecutionContext context)
JobListener
Called by the when a Scheduler
is about to be executed (an associated JobDetail
has occurred).
Trigger
This method will not be invoked if the execution of the Job was vetoed
by a .
TriggerListener
jobToBeExecuted in interface JobListenerJobListener.jobExecutionVetoed(JobExecutionContext)public void jobExecutionVetoed(JobExecutionContext context)
JobListener
Called by the when a Scheduler
was about to be executed (an associated JobDetail
has occurred), but a Trigger vetoed it's
execution.
TriggerListener
jobExecutionVetoed in interface JobListenerJobListener.jobToBeExecuted(JobExecutionContext)public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
JobListener
Called by the after a Scheduler
has been executed, and be for the associated JobDetailTrigger's
triggered(xx) method has been called.
jobWasExecuted in interface JobListenerCopyright 2001-2019, Terracotta, Inc.