org.quartz.listeners
Class SchedulerListenerSupport

java.lang.Object
  extended by org.quartz.listeners.SchedulerListenerSupport
All Implemented Interfaces:
SchedulerListener
Direct Known Subclasses:
JobRunShell, QuartzServer, SampledStatisticsImpl

public abstract class SchedulerListenerSupport
extends java.lang.Object
implements SchedulerListener

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 SchedulerListener events you care about.

See Also:
SchedulerListener

Constructor Summary
SchedulerListenerSupport()
           
 
Method Summary
protected  org.slf4j.Logger getLog()
          Get the Logger for this class's category.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerListenerSupport

public SchedulerListenerSupport()
Method Detail

getLog

protected org.slf4j.Logger getLog()
Get the Logger for this class's category. This should be used by subclasses for logging.


jobAdded

public void jobAdded(JobDetail jobDetail)
Description copied from interface: SchedulerListener

Called by the Scheduler when a JobDetail has been added.

Specified by:
jobAdded in interface SchedulerListener

jobDeleted

public void jobDeleted(java.lang.String jobName,
                       java.lang.String groupName)
Description copied from interface: SchedulerListener

Called by the Scheduler when a JobDetail has been deleted.

Specified by:
jobDeleted in interface SchedulerListener

jobScheduled

public void jobScheduled(Trigger trigger)
Description copied from interface: SchedulerListener

Called by the Scheduler when a JobDetail is scheduled.

Specified by:
jobScheduled in interface SchedulerListener

jobUnscheduled

public void jobUnscheduled(java.lang.String triggerName,
                           java.lang.String triggerGroup)
Description copied from interface: SchedulerListener

Called by the Scheduler when a JobDetail is unscheduled.

Specified by:
jobUnscheduled in interface SchedulerListener

triggerFinalized

public void triggerFinalized(Trigger trigger)
Description copied from interface: SchedulerListener

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

Specified by:
triggerFinalized in interface SchedulerListener

triggersPaused

public void triggersPaused(java.lang.String triggerName,
                           java.lang.String triggerGroup)
Description copied from interface: SchedulerListener

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.

Specified by:
triggersPaused in interface SchedulerListener

triggersResumed

public void triggersResumed(java.lang.String triggerName,
                            java.lang.String triggerGroup)
Description copied from interface: SchedulerListener

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.

Specified by:
triggersResumed in interface SchedulerListener

jobsPaused

public void jobsPaused(java.lang.String jobName,
                       java.lang.String jobGroup)
Description copied from interface: SchedulerListener

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.

Specified by:
jobsPaused in interface SchedulerListener

jobsResumed

public void jobsResumed(java.lang.String jobName,
                        java.lang.String jobGroup)
Description copied from interface: SchedulerListener

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.

Specified by:
jobsResumed in interface SchedulerListener

schedulerError

public void schedulerError(java.lang.String msg,
                           SchedulerException cause)
Description copied from interface: SchedulerListener

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.

Specified by:
schedulerError in interface SchedulerListener

schedulerStarted

public void schedulerStarted()
Description copied from interface: SchedulerListener

Called by the Scheduler to inform the listener that it has started.

Specified by:
schedulerStarted in interface SchedulerListener

schedulerInStandbyMode

public void schedulerInStandbyMode()
Description copied from interface: SchedulerListener

Called by the Scheduler to inform the listener that it has move to standby mode.

Specified by:
schedulerInStandbyMode in interface SchedulerListener

schedulerShutdown

public void schedulerShutdown()
Description copied from interface: SchedulerListener

Called by the Scheduler to inform the listener that it has shutdown.

Specified by:
schedulerShutdown in interface SchedulerListener

schedulerShuttingdown

public void schedulerShuttingdown()
Description copied from interface: SchedulerListener

Called by the Scheduler to inform the listener that it has begun the shutdown process.

Specified by:
schedulerShuttingdown in interface SchedulerListener


Copyright 2001-2019, Terracotta, Inc.