Package org.quartz.listeners
Class JobListenerSupport
- java.lang.Object
-
- org.quartz.listeners.JobListenerSupport
-
- All Implemented Interfaces:
JobListener
- Direct Known Subclasses:
JobChainingJobListener
public abstract class JobListenerSupport extends java.lang.Object implements JobListener
A helpful abstract base class for implementors of
.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 yourJobListener.getName()
JobListener
.- See Also:
JobListener
-
-
Constructor Summary
Constructors Constructor Description JobListenerSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.slf4j.Logger
getLog()
Get the
for this class's category.Logger
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.quartz.JobListener
getName
-
-
-
-
Method Detail
-
getLog
protected org.slf4j.Logger getLog()
Get the
for this class's category. This should be used by subclasses for logging.Logger
-
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
Description copied from interface:JobListener
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
- Specified by:
jobToBeExecuted
in interfaceJobListener
- See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)
-
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
Description copied from interface:JobListener
Called by the
when aScheduler
was about to be executed (an associatedJobDetail
has occurred), but aTrigger
vetoed it's execution.TriggerListener
- Specified by:
jobExecutionVetoed
in interfaceJobListener
- See Also:
JobListener.jobToBeExecuted(JobExecutionContext)
-
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
Description copied from interface:JobListener
Called by the
after aScheduler
has been executed, and be for the associatedJobDetail
Trigger
'striggered(xx)
method has been called.- Specified by:
jobWasExecuted
in interfaceJobListener
-
-