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.JobListenerThe methods in this class are empty so you only need to override the subset for the
events you care about.JobListenerYou 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.LoggergetLog()Get thefor this class's category.LoggervoidjobExecutionVetoed(JobExecutionContext context)Called by thewhen aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListenervoidjobToBeExecuted(JobExecutionContext context)voidjobWasExecuted(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 thefor this class's category. This should be used by subclasses for logging.Logger
-
jobToBeExecuted
public void jobToBeExecuted(JobExecutionContext context)
Description copied from interface:JobListenerCalled by the
when aScheduleris about to be executed (an associatedJobDetailhas occurred).TriggerThis method will not be invoked if the execution of the Job was vetoed by a
.TriggerListener- Specified by:
jobToBeExecutedin interfaceJobListener- See Also:
JobListener.jobExecutionVetoed(JobExecutionContext)
-
jobExecutionVetoed
public void jobExecutionVetoed(JobExecutionContext context)
Description copied from interface:JobListenerCalled by the
when aSchedulerwas about to be executed (an associatedJobDetailhas occurred), but aTriggervetoed it's execution.TriggerListener- Specified by:
jobExecutionVetoedin interfaceJobListener- See Also:
JobListener.jobToBeExecuted(JobExecutionContext)
-
jobWasExecuted
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
Description copied from interface:JobListenerCalled by the
after aSchedulerhas been executed, and be for the associatedJobDetailTrigger'striggered(xx)method has been called.- Specified by:
jobWasExecutedin interfaceJobListener
-
-