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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.Logger
getLog()
Get the
for this class's category.Logger
void
void
jobDeleted
(String jobKey) void
jobScheduled
(Trigger trigger) void
jobUnscheduled
(String triggerKey) void
schedulerError
(String msg, SchedulerException cause) Called by the
when a serious error has occurred within the scheduler - such as repeated failures in theScheduler
JobStore
, or the inability to instantiate aJob
instance when itsTrigger
has fired.void
Called by the
to inform the listener that it has move to standby mode.Scheduler
void
Called by the
to inform the listener that it has shutdown.Scheduler
void
Called by the
to inform the listener that it has begun the shutdown sequence.Scheduler
void
Called by the
to inform the listener that it has started.Scheduler
void
Called by the
to inform the listener that all jobs, triggers and calendars were deleted.Scheduler
void
triggerFinalized
(Trigger trigger)
-
Constructor Details
-
SchedulerListenerSupport
public SchedulerListenerSupport()
-
-
Method Details
-
getLog
protected org.slf4j.Logger getLog()Get the
for this class's category. This should be used by subclasses for logging.Logger
-
jobAdded
Description copied from interface:SchedulerListener
- Specified by:
jobAdded
in interfaceSchedulerListener
-
jobDeleted
Description copied from interface:SchedulerListener
- Specified by:
jobDeleted
in interfaceSchedulerListener
-
jobScheduled
Description copied from interface:SchedulerListener
- Specified by:
jobScheduled
in interfaceSchedulerListener
-
jobUnscheduled
Description copied from interface:SchedulerListener
- Specified by:
jobUnscheduled
in interfaceSchedulerListener
- See Also:
-
schedulerError
Description copied from interface:SchedulerListener
Called by the
when a serious error has occurred within the scheduler - such as repeated failures in theScheduler
JobStore
, or the inability to instantiate aJob
instance when itsTrigger
has 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:
schedulerError
in interfaceSchedulerListener
-
schedulerInStandbyMode
public void schedulerInStandbyMode()Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has move to standby mode.Scheduler
- Specified by:
schedulerInStandbyMode
in interfaceSchedulerListener
-
schedulerShutdown
public void schedulerShutdown()Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has shutdown.Scheduler
- Specified by:
schedulerShutdown
in interfaceSchedulerListener
-
schedulerShuttingdown
public void schedulerShuttingdown()Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has begun the shutdown sequence.Scheduler
- Specified by:
schedulerShuttingdown
in interfaceSchedulerListener
-
schedulerStarted
public void schedulerStarted()Description copied from interface:SchedulerListener
Called by the
to inform the listener that it has started.Scheduler
- Specified by:
schedulerStarted
in interfaceSchedulerListener
-
triggerFinalized
Description copied from interface:SchedulerListener
- Specified by:
triggerFinalized
in interfaceSchedulerListener
-
schedulingDataCleared
public void schedulingDataCleared()Description copied from interface:SchedulerListener
Called by the
to inform the listener that all jobs, triggers and calendars were deleted.Scheduler
- Specified by:
schedulingDataCleared
in interfaceSchedulerListener
-