com.atlassian.crowd.manager.directory.monitor.poller
Class DirectoryPollerManagerImpl
java.lang.Object
com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManagerImpl
- All Implemented Interfaces:
- DirectoryPollerManager
public class DirectoryPollerManagerImpl
- extends Object
- implements DirectoryPollerManager
|
Method Summary |
void |
addPoller(DirectoryPoller poller)
Adds a configured DirectoryPoller to the scheduler. |
protected String |
getJobName(long directoryID)
|
boolean |
hasPoller(long directoryID)
Checks whether a DirectoryPoller is scheduled to
poll a given directory. |
void |
removeAllPollers()
Attempts to unregister all registered pollers. |
boolean |
removePoller(long directoryID)
Removes the DirectoryPoller from the scheduler if
one exists for the given directory. |
void |
setScheduler(org.quartz.Scheduler scheduler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRECTORY_POLLER_JOB_GROUP
public static final String DIRECTORY_POLLER_JOB_GROUP
- See Also:
- Constant Field Values
DirectoryPollerManagerImpl
public DirectoryPollerManagerImpl()
addPoller
public void addPoller(DirectoryPoller poller)
throws DirectoryMonitorRegistrationException
- Description copied from interface:
DirectoryPollerManager
- Adds a configured DirectoryPoller to the scheduler.
- Specified by:
addPoller in interface DirectoryPollerManager
- Parameters:
poller - configured DirectoryPoller.
- Throws:
DirectoryMonitorRegistrationException - error registering poller with scheduler.
hasPoller
public boolean hasPoller(long directoryID)
- Description copied from interface:
DirectoryPollerManager
- Checks whether a DirectoryPoller is scheduled to
poll a given directory.
- Specified by:
hasPoller in interface DirectoryPollerManager
- Parameters:
directoryID - directory ID.
- Returns:
true if and only if a poller has been scheduled.
removePoller
public boolean removePoller(long directoryID)
throws DirectoryMonitorUnregistrationException
- Description copied from interface:
DirectoryPollerManager
- Removes the DirectoryPoller from the scheduler if
one exists for the given directory.
- Specified by:
removePoller in interface DirectoryPollerManager
- Parameters:
directoryID - directory ID.
- Returns:
true if and only if a poller existed
and was removed from polling the given directory.
- Throws:
DirectoryMonitorUnregistrationException
removeAllPollers
public void removeAllPollers()
- Description copied from interface:
DirectoryPollerManager
- Attempts to unregister all registered pollers.
Skips over any directories that fail unregistration.
- Specified by:
removeAllPollers in interface DirectoryPollerManager
getJobName
protected String getJobName(long directoryID)
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.