Package org.quartz.listeners
Class SchedulerListenerSupport
java.lang.Object
org.quartz.listeners.SchedulerListenerSupport
- All Implemented Interfaces:
SchedulerListener
- Direct Known Subclasses:
JobRunShell
A helpful abstract base class for implementors of
SchedulerListener.
The methods in this class are empty so you only need to override the subset for the
events you care about.SchedulerListener
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.LoggergetLog()Get thefor this class's category.LoggervoidvoidjobDeleted(String jobKey) voidjobScheduled(Trigger trigger) voidjobUnscheduled(String triggerKey) voidschedulerError(String msg, SchedulerException cause) Called by thewhen a serious error has occurred within the scheduler - such as repeated failures in theSchedulerJobStore, or the inability to instantiate aJobinstance when itsTriggerhas fired.voidCalled by theto inform the listener that it has move to standby mode.SchedulervoidCalled by theto inform the listener that it has shutdown.SchedulervoidCalled by theto inform the listener that it has begun the shutdown sequence.SchedulervoidCalled by theto inform the listener that it has started.SchedulervoidCalled by theto inform the listener that all jobs, triggers and calendars were deleted.SchedulervoidtriggerFinalized(Trigger trigger)
-
Constructor Details
-
SchedulerListenerSupport
public SchedulerListenerSupport()
-
-
Method Details
-
getLog
protected org.slf4j.Logger getLog()Get thefor this class's category. This should be used by subclasses for logging.Logger -
jobAdded
Description copied from interface:SchedulerListener- Specified by:
jobAddedin interfaceSchedulerListener
-
jobDeleted
Description copied from interface:SchedulerListener- Specified by:
jobDeletedin interfaceSchedulerListener
-
jobScheduled
Description copied from interface:SchedulerListener- Specified by:
jobScheduledin interfaceSchedulerListener
-
jobUnscheduled
Description copied from interface:SchedulerListener- Specified by:
jobUnscheduledin interfaceSchedulerListener- See Also:
-
schedulerError
Description copied from interface:SchedulerListenerCalled by thewhen a serious error has occurred within the scheduler - such as repeated failures in theSchedulerJobStore, or the inability to instantiate aJobinstance when itsTriggerhas fired.The
getErrorCode()method of the given SchedulerException can be used to determine more specific information about the type of error that was encountered.- Specified by:
schedulerErrorin interfaceSchedulerListener
-
schedulerInStandbyMode
public void schedulerInStandbyMode()Description copied from interface:SchedulerListenerCalled by theto inform the listener that it has move to standby mode.Scheduler- Specified by:
schedulerInStandbyModein interfaceSchedulerListener
-
schedulerShutdown
public void schedulerShutdown()Description copied from interface:SchedulerListenerCalled by theto inform the listener that it has shutdown.Scheduler- Specified by:
schedulerShutdownin interfaceSchedulerListener
-
schedulerShuttingdown
public void schedulerShuttingdown()Description copied from interface:SchedulerListenerCalled by theto inform the listener that it has begun the shutdown sequence.Scheduler- Specified by:
schedulerShuttingdownin interfaceSchedulerListener
-
schedulerStarted
public void schedulerStarted()Description copied from interface:SchedulerListenerCalled by theto inform the listener that it has started.Scheduler- Specified by:
schedulerStartedin interfaceSchedulerListener
-
triggerFinalized
Description copied from interface:SchedulerListener- Specified by:
triggerFinalizedin interfaceSchedulerListener
-
schedulingDataCleared
public void schedulingDataCleared()Description copied from interface:SchedulerListenerCalled by theto inform the listener that all jobs, triggers and calendars were deleted.Scheduler- Specified by:
schedulingDataClearedin interfaceSchedulerListener
-