Package org.quartz.listeners
Interface SchedulerListener
- All Known Implementing Classes:
JobRunShell
,SchedulerListenerSupport
public interface SchedulerListener
The interface to be implemented by classes that want to be informed of major
Scheduler
events.- Author:
- James House
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Method Details
-
jobScheduled
-
jobUnscheduled
- See Also:
-
triggerFinalized
-
jobAdded
-
jobDeleted
-
schedulerError
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. -
schedulerInStandbyMode
void schedulerInStandbyMode()Called by the
to inform the listener that it has move to standby mode.Scheduler
-
schedulerStarted
void schedulerStarted()Called by the
to inform the listener that it has started.Scheduler
-
schedulerShutdown
void schedulerShutdown()Called by the
to inform the listener that it has shutdown.Scheduler
-
schedulerShuttingdown
void schedulerShuttingdown()Called by the
to inform the listener that it has begun the shutdown sequence.Scheduler
-
schedulingDataCleared
void schedulingDataCleared()Called by the
to inform the listener that all jobs, triggers and calendars were deleted.Scheduler
-