public abstract class SchedulerListenerSupport extends Object implements SchedulerListener
SchedulerListener.
The methods in this class are empty so you only need to override the subset for the
events you care about.
SchedulerListener
SchedulerListener| Constructor and Description |
|---|
SchedulerListenerSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected org.slf4j.Logger |
getLog()
Get the
for this class's category. |
void |
jobAdded(JobDetail jobDetail)
|
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 the
JobStore, or the inability to instantiate a Job instance when its Trigger has fired. |
void |
schedulerInStandbyMode()
Called by the
to inform the listener that it has move to standby mode. |
void |
schedulerShutdown()
Called by the
to inform the listener that it has shutdown. |
void |
schedulerShuttingdown()
Called by the
to inform the listener that it has begun the shutdown sequence. |
void |
schedulerStarted()
Called by the
to inform the listener that it has started. |
void |
schedulingDataCleared()
Called by the
to inform the listener that all jobs, triggers and calendars were deleted. |
void |
triggerFinalized(Trigger trigger)
|
protected org.slf4j.Logger getLog()
Logger for this class's category. This should be used by subclasses for logging.public void jobAdded(JobDetail jobDetail)
SchedulerListenerjobAdded in interface SchedulerListenerpublic void jobDeleted(String jobKey)
SchedulerListenerjobDeleted in interface SchedulerListenerpublic void jobScheduled(Trigger trigger)
SchedulerListenerjobScheduled in interface SchedulerListenerpublic void jobUnscheduled(String triggerKey)
SchedulerListenerjobUnscheduled in interface SchedulerListenerSchedulerListener.schedulingDataCleared()public void schedulerError(String msg, SchedulerException cause)
SchedulerListener
Called by the when a serious error has occurred within the scheduler - such as repeated failures in the
SchedulerJobStore, or the inability to instantiate a Job instance when its Trigger 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.
schedulerError in interface SchedulerListenerpublic void schedulerInStandbyMode()
SchedulerListener
Called by the to inform the listener that it has move to standby mode.
Scheduler
schedulerInStandbyMode in interface SchedulerListenerpublic void schedulerShutdown()
SchedulerListener
Called by the to inform the listener that it has shutdown.
Scheduler
schedulerShutdown in interface SchedulerListenerpublic void schedulerShuttingdown()
SchedulerListener
Called by the to inform the listener that it has begun the shutdown sequence.
Scheduler
schedulerShuttingdown in interface SchedulerListenerpublic void schedulerStarted()
SchedulerListener
Called by the to inform the listener that it has started.
Scheduler
schedulerStarted in interface SchedulerListenerpublic void triggerFinalized(Trigger trigger)
SchedulerListenertriggerFinalized in interface SchedulerListenerpublic void schedulingDataCleared()
SchedulerListenerScheduler to inform the listener that all jobs, triggers and calendars were deleted.schedulingDataCleared in interface SchedulerListenerCopyright © 2011–2017 Knowm Inc.. All rights reserved.