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 Details

    • jobScheduled

      void jobScheduled(Trigger trigger)
      Called by the Scheduler when a JobDetail is scheduled.
    • jobUnscheduled

      void jobUnscheduled(String triggerKey)
      Called by the Scheduler when a JobDetail is unscheduled.
      See Also:
    • triggerFinalized

      void triggerFinalized(Trigger trigger)
      Called by the Scheduler when a Trigger has reached the condition in which it will never fire again.
    • jobAdded

      void jobAdded(JobDetail jobDetail)
      Called by the Scheduler when a JobDetail has been added.
    • jobDeleted

      void jobDeleted(String jobKey)
      Called by the Scheduler when a JobDetail has been deleted.
    • schedulerError

      void schedulerError(String msg, SchedulerException cause)
      Called by the Scheduler 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.

      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 Scheduler to inform the listener that it has move to standby mode.
    • schedulerStarted

      void schedulerStarted()
      Called by the Scheduler to inform the listener that it has started.
    • schedulerShutdown

      void schedulerShutdown()
      Called by the Scheduler to inform the listener that it has shutdown.
    • schedulerShuttingdown

      void schedulerShuttingdown()
      Called by the Scheduler to inform the listener that it has begun the shutdown sequence.
    • schedulingDataCleared

      void schedulingDataCleared()
      Called by the Scheduler to inform the listener that all jobs, triggers and calendars were deleted.