|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.listeners Class BroadcastSchedulerListener
java.lang.Object org.quartz.listeners.BroadcastSchedulerListener
- All Implemented Interfaces:
- SchedulerListener
public class BroadcastSchedulerListener
- extends Object
- implements SchedulerListener
Holds a List of references to SchedulerListener instances and broadcasts all events to them (in order).
This may be more convenient than registering all of the listeners directly with the Scheduler, and provides the flexibility of easily changing which listeners get notified.
- Author:
- James House (jhouse AT revolition DOT net)
- See Also:
addListener(org.quartz.SchedulerListener)
,removeListener(org.quartz.SchedulerListener)
Constructor Summary | |
---|---|
BroadcastSchedulerListener()
|
|
BroadcastSchedulerListener(List listeners)
Construct an instance with the given List of listeners. |
Method Summary | |
---|---|
void |
addListener(SchedulerListener listener)
|
List<SchedulerListener> |
getListeners()
|
void |
jobAdded(JobDetail jobDetail)
Called by the
Scheduler when a
JobDetail
has been added. |
void |
jobDeleted(JobKey jobKey)
Called by the
Scheduler when a
JobDetail
has been deleted. |
void |
jobPaused(JobKey key)
Called by the
Scheduler when a
JobDetail
has been paused. |
void |
jobResumed(JobKey key)
Called by the
Scheduler when a
JobDetail
has been un-paused. |
void |
jobScheduled(Trigger trigger)
Called by the
Scheduler when a
JobDetail
is scheduled. |
void |
jobsPaused(String jobGroup)
Called by the
Scheduler when a
group of
JobDetail s has been paused. |
void |
jobsResumed(String jobGroup)
Called by the
Scheduler when a
group of
JobDetail s has been un-paused. |
void |
jobUnscheduled(TriggerKey triggerKey)
Called by the
Scheduler when a
JobDetail
is unscheduled. |
boolean |
removeListener(SchedulerListener listener)
|
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. |
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 sequence. |
void |
schedulerStarted()
Called by the
Scheduler to inform the listener
that it has started. |
void |
schedulingDataCleared()
Called by the
Scheduler to inform the listener
that all jobs, triggers and calendars were deleted. |
void |
triggerFinalized(Trigger trigger)
Called by the
Scheduler when a
Trigger
has reached the condition in which it will never fire again. |
void |
triggerPaused(TriggerKey key)
Called by the
Scheduler when a
Trigger
has been paused. |
void |
triggerResumed(TriggerKey key)
Called by the
Scheduler when a
Trigger
has been un-paused. |
void |
triggersPaused(String triggerGroup)
Called by the
Scheduler when a
group of
Trigger s has been paused. |
void |
triggersResumed(String triggerGroup)
Called by the
Scheduler when a
group of
Trigger s has been un-paused. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BroadcastSchedulerListener
public BroadcastSchedulerListener()
BroadcastSchedulerListener
public BroadcastSchedulerListener(List listeners)
- Construct an instance with the given List of listeners.
- Parameters:
listeners
- the initial List of SchedulerListeners to broadcast to.
Method Detail |
---|
addListener
public void addListener(SchedulerListener listener)
removeListener
public boolean removeListener(SchedulerListener listener)
getListeners
public List<SchedulerListener> getListeners()
jobAdded
public void jobAdded(JobDetail jobDetail)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
has been added.- Specified by:
jobAdded
in interfaceSchedulerListener
jobDeleted
public void jobDeleted(JobKey jobKey)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
has been deleted.- Specified by:
jobDeleted
in interfaceSchedulerListener
jobScheduled
public void jobScheduled(Trigger trigger)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
is scheduled.- Specified by:
jobScheduled
in interfaceSchedulerListener
jobUnscheduled
public void jobUnscheduled(TriggerKey triggerKey)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
is unscheduled.- Specified by:
jobUnscheduled
in interfaceSchedulerListener
triggerFinalized
public void triggerFinalized(Trigger trigger)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aTrigger
has reached the condition in which it will never fire again.- Specified by:
triggerFinalized
in interfaceSchedulerListener
triggerPaused
public void triggerPaused(TriggerKey key)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aTrigger
has been paused.- Specified by:
triggerPaused
in interfaceSchedulerListener
triggersPaused
public void triggersPaused(String triggerGroup)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when a group ofTrigger
s has been paused.If all groups were paused then triggerGroup will be null
- Specified by:
triggersPaused
in interfaceSchedulerListener
- Parameters:
triggerGroup
- the paused group, or null if all were paused
triggerResumed
public void triggerResumed(TriggerKey key)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aTrigger
has been un-paused.- Specified by:
triggerResumed
in interfaceSchedulerListener
triggersResumed
public void triggersResumed(String triggerGroup)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when a group ofTrigger
s has been un-paused.- Specified by:
triggersResumed
in interfaceSchedulerListener
schedulingDataCleared
public void schedulingDataCleared()
- Description copied from interface:
SchedulerListener
- Called by the
Scheduler
to inform the listener that all jobs, triggers and calendars were deleted. - Specified by:
schedulingDataCleared
in interfaceSchedulerListener
jobPaused
public void jobPaused(JobKey key)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
has been paused.- Specified by:
jobPaused
in interfaceSchedulerListener
jobsPaused
public void jobsPaused(String jobGroup)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when a group ofJobDetail
s has been paused.- Specified by:
jobsPaused
in interfaceSchedulerListener
- Parameters:
jobGroup
- the paused group, or null if all were paused
jobResumed
public void jobResumed(JobKey key)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when aJobDetail
has been un-paused.- Specified by:
jobResumed
in interfaceSchedulerListener
jobsResumed
public void jobsResumed(String jobGroup)
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
when a group ofJobDetail
s has been un-paused.- Specified by:
jobsResumed
in interfaceSchedulerListener
schedulerError
public void schedulerError(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 theJobStore
, 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.- Specified by:
schedulerError
in interfaceSchedulerListener
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 interfaceSchedulerListener
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 interfaceSchedulerListener
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 interfaceSchedulerListener
schedulerShuttingdown
public void schedulerShuttingdown()
- Description copied from interface:
SchedulerListener
Called by the
Scheduler
to inform the listener that it has begun the shutdown sequence.- Specified by:
schedulerShuttingdown
in interfaceSchedulerListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.