|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.listeners.BroadcastSchedulerListener
public class BroadcastSchedulerListener
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.
addListener(org.quartz.SchedulerListener)
,
removeListener(org.quartz.SchedulerListener)
Constructor Summary | |
---|---|
BroadcastSchedulerListener()
|
|
BroadcastSchedulerListener(java.util.List listeners)
Construct an instance with the given List of listeners. |
Method Summary | |
---|---|
void |
addListener(SchedulerListener listener)
|
java.util.List |
getListeners()
|
void |
jobAdded(JobDetail jobDetail)
Called by the when a
has been added. |
void |
jobDeleted(java.lang.String jobName,
java.lang.String groupName)
Called by the when a
has been deleted. |
void |
jobScheduled(Trigger trigger)
Called by the when a
is scheduled. |
void |
jobsPaused(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
or group of has been
paused. |
void |
jobsResumed(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
or group of has been
un-paused. |
void |
jobUnscheduled(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
is unscheduled. |
boolean |
removeListener(SchedulerListener listener)
|
void |
schedulerError(java.lang.String msg,
SchedulerException cause)
Called by the 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 to inform the listener
that it has move to standby mode. |
void |
schedulerShutdown()
Called by the to inform the listener
that it has shutdown. |
void |
schedulerShuttingdown()
Called by the to inform the listener
that it has begun the shutdown process. |
void |
schedulerStarted()
Called by the to inform the listener
that it has started. |
void |
triggerFinalized(Trigger trigger)
Called by the when a
has reached the condition in which it will never fire again. |
void |
triggersPaused(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
or group of has been paused. |
void |
triggersResumed(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
or group of has been un-paused. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BroadcastSchedulerListener()
public BroadcastSchedulerListener(java.util.List listeners)
listeners
- the initial List of SchedulerListeners to broadcast to.Method Detail |
---|
public void addListener(SchedulerListener listener)
public boolean removeListener(SchedulerListener listener)
public java.util.List getListeners()
public void jobAdded(JobDetail jobDetail)
SchedulerListener
Called by the
when a Scheduler
has been added.
JobDetail
jobAdded
in interface SchedulerListener
public void jobDeleted(java.lang.String jobName, java.lang.String groupName)
SchedulerListener
Called by the
when a Scheduler
has been deleted.
JobDetail
jobDeleted
in interface SchedulerListener
public void jobScheduled(Trigger trigger)
SchedulerListener
Called by the
when a Scheduler
is scheduled.
JobDetail
jobScheduled
in interface SchedulerListener
public void jobUnscheduled(java.lang.String triggerName, java.lang.String triggerGroup)
SchedulerListener
Called by the
when a Scheduler
is unscheduled.
JobDetail
jobUnscheduled
in interface SchedulerListener
public void triggerFinalized(Trigger trigger)
SchedulerListener
Called by the
when a Scheduler
has reached the condition in which it will never fire again.
Trigger
triggerFinalized
in interface SchedulerListener
public void triggersPaused(java.lang.String triggerName, java.lang.String triggerGroup)
SchedulerListener
Called by the
when a Scheduler
or group of Trigger
has been paused.
Trigger
s
If a group was paused, then the triggerName
parameter
will be null.
triggersPaused
in interface SchedulerListener
public void triggersResumed(java.lang.String triggerName, java.lang.String triggerGroup)
SchedulerListener
Called by the
when a Scheduler
or group of Trigger
has been un-paused.
Trigger
s
If a group was resumed, then the triggerName
parameter
will be null.
triggersResumed
in interface SchedulerListener
public void jobsPaused(java.lang.String jobName, java.lang.String jobGroup)
SchedulerListener
Called by the
when a Scheduler
or group of JobDetail
has been
paused.
JobDetail
s
If a group was paused, then the jobName
parameter will be
null. If all jobs were paused, then both parameters will be null.
jobsPaused
in interface SchedulerListener
public void jobsResumed(java.lang.String jobName, java.lang.String jobGroup)
SchedulerListener
Called by the
when a Scheduler
or group of JobDetail
has been
un-paused.
JobDetail
s
If a group was resumed, then the jobName
parameter will
be null. If all jobs were paused, then both parameters will be null.
jobsResumed
in interface SchedulerListener
public void schedulerError(java.lang.String msg, SchedulerException cause)
SchedulerListener
Called by the
when a serious error has
occurred within the scheduler - such as repeated failures in the Scheduler
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.
schedulerError
in interface SchedulerListener
public void schedulerStarted()
SchedulerListener
Called by the
to inform the listener
that it has started.
Scheduler
schedulerStarted
in interface SchedulerListener
public void schedulerInStandbyMode()
SchedulerListener
Called by the
to inform the listener
that it has move to standby mode.
Scheduler
schedulerInStandbyMode
in interface SchedulerListener
public void schedulerShutdown()
SchedulerListener
Called by the
to inform the listener
that it has shutdown.
Scheduler
schedulerShutdown
in interface SchedulerListener
public void schedulerShuttingdown()
SchedulerListener
Called by the
to inform the listener
that it has begun the shutdown process.
Scheduler
schedulerShuttingdown
in interface SchedulerListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |