org.quartz
Interface SchedulerListener

All Known Implementing Classes:
BroadcastSchedulerListener, JobRunShell, JTAJobRunShell, QuartzSchedulerMBeanImpl, QuartzServer, SampledStatisticsImpl, SchedulerListenerSupport

public interface SchedulerListener

The interface to be implemented by classes that want to be informed of major Scheduler events.

Author:
James House
See Also:
Scheduler, JobListener, TriggerListener

Method Summary
 void jobAdded(JobDetail jobDetail)
           Called by the Scheduler when a JobDetail has been added.
 void jobDeleted(java.lang.String jobName, java.lang.String groupName)
           Called by the Scheduler when a JobDetail has been deleted.
 void jobScheduled(Trigger trigger)
           Called by the Scheduler when a JobDetail is scheduled.
 void jobsPaused(java.lang.String jobName, java.lang.String jobGroup)
           Called by the Scheduler when a JobDetail or group of JobDetails has been paused.
 void jobsResumed(java.lang.String jobName, java.lang.String jobGroup)
           Called by the Scheduler when a JobDetail or group of JobDetails has been un-paused.
 void jobUnscheduled(java.lang.String triggerName, java.lang.String triggerGroup)
           Called by the Scheduler when a JobDetail is unscheduled.
 void schedulerError(java.lang.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.
 void schedulerInStandbyMode()
           Called by the Scheduler to inform the listener that it has move to standby mode.
 void schedulerShutdown()
           Called by the Scheduler to inform the listener that it has shutdown.
 void schedulerShuttingdown()
           Called by the Scheduler to inform the listener that it has begun the shutdown process.
 void schedulerStarted()
           Called by the Scheduler to inform the listener that it has started.
 void triggerFinalized(Trigger trigger)
           Called by the Scheduler when a Trigger has reached the condition in which it will never fire again.
 void triggersPaused(java.lang.String triggerName, java.lang.String triggerGroup)
           Called by the Scheduler when a Trigger or group of Triggers has been paused.
 void triggersResumed(java.lang.String triggerName, java.lang.String triggerGroup)
           Called by the Scheduler when a Trigger or group of Triggers has been un-paused.
 

Method Detail

jobScheduled

void jobScheduled(Trigger trigger)

Called by the Scheduler when a JobDetail is scheduled.


jobUnscheduled

void jobUnscheduled(java.lang.String triggerName,
                    java.lang.String triggerGroup)

Called by the Scheduler when a JobDetail is unscheduled.


triggerFinalized

void triggerFinalized(Trigger trigger)

Called by the Scheduler when a Trigger has reached the condition in which it will never fire again.


triggersPaused

void triggersPaused(java.lang.String triggerName,
                    java.lang.String triggerGroup)

Called by the Scheduler when a Trigger or group of Triggers has been paused.

If a group was paused, then the triggerName parameter will be null.


triggersResumed

void triggersResumed(java.lang.String triggerName,
                     java.lang.String triggerGroup)

Called by the Scheduler when a Trigger or group of Triggers has been un-paused.

If a group was resumed, then the triggerName parameter will be null.


jobAdded

void jobAdded(JobDetail jobDetail)

Called by the Scheduler when a JobDetail has been added.


jobDeleted

void jobDeleted(java.lang.String jobName,
                java.lang.String groupName)

Called by the Scheduler when a JobDetail has been deleted.


jobsPaused

void jobsPaused(java.lang.String jobName,
                java.lang.String jobGroup)

Called by the Scheduler when a JobDetail or group of JobDetails has been paused.

If a group was paused, then the jobName parameter will be null. If all jobs were paused, then both parameters will be null.


jobsResumed

void jobsResumed(java.lang.String jobName,
                 java.lang.String jobGroup)

Called by the Scheduler when a JobDetail or group of JobDetails has been un-paused.

If a group was resumed, then the jobName parameter will be null. If all jobs were paused, then both parameters will be null.


schedulerError

void schedulerError(java.lang.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 process.



Copyright 2001-2019, Terracotta, Inc.