|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.listeners.BroadcastJobListener
public class BroadcastJobListener
Holds a List of references to JobListener instances and broadcasts all events to them (in order).
The broadcasting behavior of this listener to delegate listeners 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.JobListener)
,
removeListener(org.quartz.JobListener)
,
removeListener(String)
Constructor Summary | |
---|---|
BroadcastJobListener(java.lang.String name)
Construct an instance with the given name. |
|
BroadcastJobListener(java.lang.String name,
java.util.List<JobListener> listeners)
Construct an instance with the given name, and List of listeners. |
Method Summary | |
---|---|
void |
addListener(JobListener listener)
|
java.util.List<JobListener> |
getListeners()
|
java.lang.String |
getName()
Get the name of the JobListener . |
void |
jobExecutionVetoed(JobExecutionContext context)
Called by the when a
was about to be executed (an associated
has occurred), but a vetoed it's
execution. |
void |
jobToBeExecuted(JobExecutionContext context)
Called by the when a
is about to be executed (an associated
has occurred). |
void |
jobWasExecuted(JobExecutionContext context,
JobExecutionException jobException)
Called by the after a
has been executed, and be for the associated Trigger 's
triggered(xx) method has been called. |
boolean |
removeListener(JobListener listener)
|
boolean |
removeListener(java.lang.String listenerName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BroadcastJobListener(java.lang.String name)
name
- the name of this instancepublic BroadcastJobListener(java.lang.String name, java.util.List<JobListener> listeners)
name
- the name of this instancelisteners
- the initial List of JobListeners to broadcast to.Method Detail |
---|
public java.lang.String getName()
JobListener
Get the name of the JobListener
.
getName
in interface JobListener
public void addListener(JobListener listener)
public boolean removeListener(JobListener listener)
public boolean removeListener(java.lang.String listenerName)
public java.util.List<JobListener> getListeners()
public void jobToBeExecuted(JobExecutionContext context)
JobListener
Called by the
when a Scheduler
is about to be executed (an associated JobDetail
has occurred).
Trigger
This method will not be invoked if the execution of the Job was vetoed
by a
.
TriggerListener
jobToBeExecuted
in interface JobListener
JobListener.jobExecutionVetoed(JobExecutionContext)
public void jobExecutionVetoed(JobExecutionContext context)
JobListener
Called by the
when a Scheduler
was about to be executed (an associated JobDetail
has occurred), but a Trigger
vetoed it's
execution.
TriggerListener
jobExecutionVetoed
in interface JobListener
JobListener.jobToBeExecuted(JobExecutionContext)
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
JobListener
Called by the
after a Scheduler
has been executed, and be for the associated JobDetail
Trigger
's
triggered(xx)
method has been called.
jobWasExecuted
in interface JobListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |