public class ListenerManager extends Object implements IListenerManager
| Constructor and Description |
|---|
ListenerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJobListener(IJobListener jobListener)
Add the given
to the
Scheduler, and register it to receive events for all Jobs. |
void |
addJobListener(IJobListener aJobListener,
IMatcher<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(IJobListener jobListener,
IMatcher<JobKey> matcher)
Add the given
to the
Scheduler, and register it to receive events for Jobs that are
matched by the given Matcher. |
void |
addJobListener(IJobListener jobListener,
List<IMatcher<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. |
boolean |
addJobListenerMatcher(String listenerName,
IMatcher<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(ISchedulerListener schedulerListener)
Register the given
with the
Scheduler. |
void |
addTriggerListener(ITriggerListener triggerListener)
Add the given
to the
Scheduler, and register it to receive events for all Triggers. |
void |
addTriggerListener(ITriggerListener triggerListener,
IMatcher<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(ITriggerListener triggerListener,
IMatcher<TriggerKey> matcher)
Add the given
to the
Scheduler, and register it to receive events for Triggers that
are matched by the given Matcher. |
void |
addTriggerListener(ITriggerListener triggerListener,
List<IMatcher<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. |
boolean |
addTriggerListenerMatcher(String listenerName,
IMatcher<TriggerKey> matcher)
Add the given Matcher to the set of matchers for which the listener will
receive events if ANY of the matchers match.
|
IJobListener |
getJobListener(String name)
Get the
that has the given name. |
com.helger.commons.collection.impl.ICommonsList<IMatcher<JobKey>> |
getJobListenerMatchers(String listenerName)
Get the set of Matchers for which the listener will receive events if ANY
of the matchers match.
|
com.helger.commons.collection.impl.ICommonsList<IJobListener> |
getJobListeners()
Get a List containing all of the
s in the
Scheduler, in the order in which they were registered. |
com.helger.commons.collection.impl.ICommonsList<ISchedulerListener> |
getSchedulerListeners()
Get a List containing all of the
s
registered with the Scheduler, in the order in which they were
registered. |
ITriggerListener |
getTriggerListener(String name)
Get the
that has the given name. |
com.helger.commons.collection.impl.ICommonsList<IMatcher<TriggerKey>> |
getTriggerListenerMatchers(String listenerName)
Get the set of Matchers for which the listener will receive events if ANY
of the matchers match.
|
com.helger.commons.collection.impl.ICommonsList<ITriggerListener> |
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,
IMatcher<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(ISchedulerListener schedulerListener)
Remove the given
from the
Scheduler. |
boolean |
removeTriggerListener(String name)
Remove the identified
from the
Scheduler. |
boolean |
removeTriggerListenerMatcher(String listenerName,
IMatcher<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<IMatcher<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<IMatcher<TriggerKey>> matchers)
Set the set of Matchers for which the listener will receive events if ANY
of the matchers match.
|
@SafeVarargs public final void addJobListener(IJobListener aJobListener, IMatcher<JobKey>... matchers)
IListenerManagerIJobListener 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.addJobListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addJobListener(IJobListener jobListener, List<IMatcher<JobKey>> matchers)
IListenerManagerIJobListener 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.addJobListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addJobListener(IJobListener jobListener)
IListenerManagerIJobListener to the
Scheduler, and register it to receive events for all Jobs.
Because no matchers are provided, the EverythingMatcher will
be used.addJobListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addJobListener(IJobListener jobListener, IMatcher<JobKey> matcher)
IListenerManagerIJobListener 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.addJobListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic boolean addJobListenerMatcher(String listenerName, IMatcher<JobKey> matcher)
IListenerManageraddJobListenerMatcher in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting eventspublic boolean removeJobListenerMatcher(String listenerName, IMatcher<JobKey> matcher)
IListenerManagerremoveJobListenerMatcher in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting eventspublic com.helger.commons.collection.impl.ICommonsList<IMatcher<JobKey>> getJobListenerMatchers(String listenerName)
IListenerManagergetJobListenerMatchers in interface IListenerManagerlistenerName - the name of the listener to add the matcher topublic boolean setJobListenerMatchers(String listenerName, @Nonnull List<IMatcher<JobKey>> matchers)
IListenerManagerRemoves any existing matchers for the identified listener!
setJobListenerMatchers in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatchers - the matchers to apply for selecting eventspublic boolean removeJobListener(String name)
IListenerManagerIJobListener from the
Scheduler.removeJobListener in interface IListenerManagerpublic com.helger.commons.collection.impl.ICommonsList<IJobListener> getJobListeners()
IListenerManagerIJobListeners in the
Scheduler, in the order in which they were registered.getJobListeners in interface IListenerManagerpublic IJobListener getJobListener(String name)
IListenerManagerIJobListener that has the given name.getJobListener in interface IListenerManager@SafeVarargs public final void addTriggerListener(ITriggerListener triggerListener, IMatcher<TriggerKey>... matchers)
IListenerManagerITriggerListener 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.addTriggerListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addTriggerListener(ITriggerListener triggerListener, List<IMatcher<TriggerKey>> matchers)
IListenerManagerITriggerListener 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.addTriggerListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addTriggerListener(ITriggerListener triggerListener)
IListenerManagerITriggerListener to the
Scheduler, and register it to receive events for all Triggers.
Because no matcher is provided, the EverythingMatcher will be
used.addTriggerListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic void addTriggerListener(ITriggerListener triggerListener, IMatcher<TriggerKey> matcher)
IListenerManagerITriggerListener 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.addTriggerListener in interface IListenerManagerIMatcher,
EverythingMatcherpublic boolean addTriggerListenerMatcher(String listenerName, IMatcher<TriggerKey> matcher)
IListenerManageraddTriggerListenerMatcher in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting eventspublic boolean removeTriggerListenerMatcher(String listenerName, IMatcher<TriggerKey> matcher)
IListenerManagerremoveTriggerListenerMatcher in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatcher - the additional matcher to apply for selecting eventspublic com.helger.commons.collection.impl.ICommonsList<IMatcher<TriggerKey>> getTriggerListenerMatchers(String listenerName)
IListenerManagergetTriggerListenerMatchers in interface IListenerManagerlistenerName - the name of the listener to add the matcher topublic boolean setTriggerListenerMatchers(String listenerName, @Nonnull List<IMatcher<TriggerKey>> matchers)
IListenerManagerRemoves any existing matchers for the identified listener!
setTriggerListenerMatchers in interface IListenerManagerlistenerName - the name of the listener to add the matcher tomatchers - the matchers to apply for selecting eventspublic boolean removeTriggerListener(String name)
IListenerManagerITriggerListener from the
Scheduler.removeTriggerListener in interface IListenerManagerpublic com.helger.commons.collection.impl.ICommonsList<ITriggerListener> getTriggerListeners()
IListenerManagerITriggerListeners in
the Scheduler, in the order in which they were registered.getTriggerListeners in interface IListenerManagerpublic ITriggerListener getTriggerListener(String name)
IListenerManagerITriggerListener that has the given name.getTriggerListener in interface IListenerManagerpublic void addSchedulerListener(ISchedulerListener schedulerListener)
IListenerManagerISchedulerListener with the
Scheduler.addSchedulerListener in interface IListenerManagerpublic boolean removeSchedulerListener(ISchedulerListener schedulerListener)
IListenerManagerISchedulerListener from the
Scheduler.removeSchedulerListener in interface IListenerManagerpublic com.helger.commons.collection.impl.ICommonsList<ISchedulerListener> getSchedulerListeners()
IListenerManagerISchedulerListeners
registered with the Scheduler, in the order in which they were
registered.getSchedulerListeners in interface IListenerManagerCopyright © 2016–2021 Philip Helger. All rights reserved.