|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectoryPollerManager
Manager for adding and removing DirectoryPollers. The pollers are scheduled via the Quartz/Spring scheduling subsystem. Implementations are used in a thread-safe manner by the DirectoryMonitorManager.
Method Summary | |
---|---|
void |
addPoller(DirectoryPoller poller)
Adds a configured DirectoryPoller to the scheduler. |
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. |
Method Detail |
---|
void addPoller(DirectoryPoller poller) throws DirectoryMonitorRegistrationException
poller
- configured DirectoryPoller.
DirectoryMonitorRegistrationException
- error registering poller with scheduler.boolean hasPoller(long directoryID)
directoryID
- directory ID.
true
if and only if a poller has been scheduled.boolean removePoller(long directoryID) throws DirectoryMonitorUnregistrationException
directoryID
- directory ID.
true
if and only if a poller existed
and was removed from polling the given directory.
DirectoryMonitorUnregistrationException
void removeAllPollers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |