|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ListenerManager
Client programs may be interested in the 'listener' interfaces that are
available from Quartz. The interface
provides notifications of JobListenerJob executions. The
interface provides notifications of
TriggerListenerTrigger firings. The
interface provides notifications of SchedulerListenerScheduler events and
errors. Listeners can be associated with local schedulers through the
ListenerManager interface.
Listener registration order is preserved, and hence notification of listeners will be in the order in which they were registered.
| Method Summary | |
|---|---|
void |
addJobListener(JobListener jobListener)
Add the given to the Scheduler,
and register it to receive events for all Jobs. |
void |
addJobListener(JobListener jobListener,
List<Matcher<JobKey>> matchers)
Add the given to the Scheduler,
and register it to receive events for Jobs that are matched by ANY of the
given Matchers. |
void |
addJobListener(JobListener jobListener,
Matcher<JobKey>... matchers)
Add the given to the Scheduler,
and register it to receive events for Jobs that are matched by ANY of the
given Matchers. |
void |
addJobListener(JobListener jobListener,
Matcher<JobKey> matcher)
Add the given to the Scheduler,
and register it to receive events for Jobs that are matched by the
given Matcher. |
boolean |
addJobListenerMatcher(String listenerName,
Matcher<JobKey> matcher)
Add the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match. |
void |
addSchedulerListener(SchedulerListener schedulerListener)
Register the given with the
Scheduler. |
void |
addTriggerListener(TriggerListener triggerListener)
Add the given to the Scheduler,
and register it to receive events for all Triggers. |
void |
addTriggerListener(TriggerListener triggerListener,
List<Matcher<TriggerKey>> matchers)
Add the given to the Scheduler,
and register it to receive events for Triggers that are matched by ANY of the
given Matchers. |
void |
addTriggerListener(TriggerListener triggerListener,
Matcher<TriggerKey>... matchers)
Add the given to the Scheduler,
and register it to receive events for Triggers that are matched by ANY of the
given Matchers. |
void |
addTriggerListener(TriggerListener triggerListener,
Matcher<TriggerKey> matcher)
Add the given to the Scheduler,
and register it to receive events for Triggers that are matched by the
given Matcher. |
boolean |
addTriggerListenerMatcher(String listenerName,
Matcher<TriggerKey> matcher)
Add the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match. |
JobListener |
getJobListener(String name)
Get the that has the given name. |
List<Matcher<JobKey>> |
getJobListenerMatchers(String listenerName)
Get the set of Matchers for which the listener will receive events if ANY of the matchers match. |
List<JobListener> |
getJobListeners()
Get a List containing all of the s in
the Scheduler, in the order in which they were registered. |
List<SchedulerListener> |
getSchedulerListeners()
Get a List containing all of the s
registered with the Scheduler, in the order in which they were registered. |
TriggerListener |
getTriggerListener(String name)
Get the that has the given name. |
List<Matcher<TriggerKey>> |
getTriggerListenerMatchers(String listenerName)
Get the set of Matchers for which the listener will receive events if ANY of the matchers match. |
List<TriggerListener> |
getTriggerListeners()
Get a List containing all of the s
in the Scheduler, in the order in which they were registered. |
boolean |
removeJobListener(String name)
Remove the identified from the Scheduler. |
boolean |
removeJobListenerMatcher(String listenerName,
Matcher<JobKey> matcher)
Remove the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match. |
boolean |
removeSchedulerListener(SchedulerListener schedulerListener)
Remove the given from the
Scheduler. |
boolean |
removeTriggerListener(String name)
Remove the identified from the Scheduler. |
boolean |
removeTriggerListenerMatcher(String listenerName,
Matcher<TriggerKey> matcher)
Remove the given Matcher to the set of matchers for which the listener will receive events if ANY of the matchers match. |
boolean |
setJobListenerMatchers(String listenerName,
List<Matcher<JobKey>> matchers)
Set the set of Matchers for which the listener will receive events if ANY of the matchers match. |
boolean |
setTriggerListenerMatchers(String listenerName,
List<Matcher<TriggerKey>> matchers)
Set the set of Matchers for which the listener will receive events if ANY of the matchers match. |
| Method Detail |
|---|
void addJobListener(JobListener jobListener)
JobListener to the Scheduler,
and register it to receive events for all Jobs.
Because no matchers are provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addJobListener(JobListener jobListener,
Matcher<JobKey> matcher)
JobListener to the Scheduler,
and register it to receive events for Jobs that are matched by the
given Matcher.
If no matchers are provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addJobListener(JobListener jobListener,
Matcher<JobKey>... matchers)
JobListener to the Scheduler,
and register it to receive events for Jobs that are matched by ANY of the
given Matchers.
If no matchers are provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addJobListener(JobListener jobListener,
List<Matcher<JobKey>> matchers)
JobListener to the Scheduler,
and register it to receive events for Jobs that are matched by ANY of the
given Matchers.
If no matchers are provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
boolean addJobListenerMatcher(String listenerName,
Matcher<JobKey> matcher)
listenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting events
SchedulerException
boolean removeJobListenerMatcher(String listenerName,
Matcher<JobKey> matcher)
listenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting events
SchedulerException
boolean setJobListenerMatchers(String listenerName,
List<Matcher<JobKey>> matchers)
Removes any existing matchers for the identified listener!
listenerName - the name of the listener to add the matcher tomatchers - the matchers to apply for selecting events
SchedulerExceptionList<Matcher<JobKey>> getJobListenerMatchers(String listenerName)
listenerName - the name of the listener to add the matcher to
SchedulerExceptionboolean removeJobListener(String name)
JobListener from the Scheduler.
List<JobListener> getJobListeners()
JobListeners in
the Scheduler, in the order in which they were registered.
JobListener getJobListener(String name)
JobListener that has the given name.
void addTriggerListener(TriggerListener triggerListener)
TriggerListener to the Scheduler,
and register it to receive events for all Triggers.
Because no matcher is provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addTriggerListener(TriggerListener triggerListener,
Matcher<TriggerKey> matcher)
TriggerListener to the Scheduler,
and register it to receive events for Triggers that are matched by the
given Matcher.
If no matcher is provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addTriggerListener(TriggerListener triggerListener,
Matcher<TriggerKey>... matchers)
TriggerListener to the Scheduler,
and register it to receive events for Triggers that are matched by ANY of the
given Matchers.
If no matcher is provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
void addTriggerListener(TriggerListener triggerListener,
List<Matcher<TriggerKey>> matchers)
TriggerListener to the Scheduler,
and register it to receive events for Triggers that are matched by ANY of the
given Matchers.
If no matcher is provided, the EverythingMatcher will be used.
Matcher,
EverythingMatcher
boolean addTriggerListenerMatcher(String listenerName,
Matcher<TriggerKey> matcher)
listenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting events
SchedulerException
boolean removeTriggerListenerMatcher(String listenerName,
Matcher<TriggerKey> matcher)
listenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting events
SchedulerException
boolean setTriggerListenerMatchers(String listenerName,
List<Matcher<TriggerKey>> matchers)
Removes any existing matchers for the identified listener!
listenerName - the name of the listener to add the matcher tomatchers - the matchers to apply for selecting events
SchedulerExceptionList<Matcher<TriggerKey>> getTriggerListenerMatchers(String listenerName)
listenerName - the name of the listener to add the matcher to
SchedulerExceptionboolean removeTriggerListener(String name)
TriggerListener from the Scheduler.
List<TriggerListener> getTriggerListeners()
TriggerListeners
in the Scheduler, in the order in which they were registered.
TriggerListener getTriggerListener(String name)
TriggerListener that has the given name.
void addSchedulerListener(SchedulerListener schedulerListener)
SchedulerListener with the
Scheduler.
boolean removeSchedulerListener(SchedulerListener schedulerListener)
SchedulerListener from the
Scheduler.
List<SchedulerListener> getSchedulerListeners()
SchedulerListeners
registered with the Scheduler, in the order in which they were registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||