|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sadun.util.polling.pollmanagers.SuspendablePollManager
This pollmanager adds suspension capabilities to another pollmanager.
| Constructor Summary | |
SuspendablePollManager(PollManager pgmt)
|
|
SuspendablePollManager(PollManager pgmt,
boolean processExceptionEvents)
|
|
| Method Summary | |
void |
cycleEnded(CycleEndEvent evt)
Invoked when a polling cycle has ended (the pooler is going to sleep) |
void |
cycleStarted(CycleStartEvent evt)
Invoked when a polling cycle start (the pooler has just awaken) |
void |
directoryLookupEnded(DirectoryLookupEndEvent evt)
Invoked when the poller has finished looking into a directory |
void |
directoryLookupStarted(DirectoryLookupStartEvent evt)
Invoked when the poller is starting to look into a directory |
void |
exceptionDeletingTargetFile(java.io.File target)
Invoked when an automove operation fails since the given file cannot be deleted |
void |
exceptionMovingFile(java.io.File file,
java.io.File dest)
Invoked when an automove operation fails since the given file cannot be moved to the given destination |
void |
fileFound(FileFoundEvent evt)
Invoked for each of the files found, if setSendSingleFileEvent()
has been invoked before starting the poller thread. |
void |
fileMoved(FileMovedEvent evt)
If the automove mode is active, is invoked for each automatic move operation executed by the poller. |
void |
fileSetFound(FileSetFoundEvent evt)
Invoked when the poller has found a set of file matching the current criteria |
boolean |
isSuspended()
|
void |
setSuspended(boolean suspended)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SuspendablePollManager(PollManager pgmt,
boolean processExceptionEvents)
public SuspendablePollManager(PollManager pgmt)
| Method Detail |
public void cycleStarted(CycleStartEvent evt)
PollManager
cycleStarted in interface PollManagerevt - the cycle start eventpublic void cycleEnded(CycleEndEvent evt)
PollManager
cycleEnded in interface PollManagerevt - the cycle end eventpublic void directoryLookupStarted(DirectoryLookupStartEvent evt)
PollManager
directoryLookupStarted in interface PollManagerevt - the lookup start eventpublic void directoryLookupEnded(DirectoryLookupEndEvent evt)
PollManager
directoryLookupEnded in interface PollManagerevt - the lookup end eventpublic void fileFound(FileFoundEvent evt)
PollManagersetSendSingleFileEvent()
has been invoked before starting the poller thread.
fileFound in interface PollManagerevt - the file set found eventpublic void fileMoved(FileMovedEvent evt)
PollManager
fileMoved in interface PollManagerpublic void fileSetFound(FileSetFoundEvent evt)
PollManager
fileSetFound in interface PollManagerevt - the file set found event
public void exceptionMovingFile(java.io.File file,
java.io.File dest)
PollManager
exceptionMovingFile in interface PollManagerfile - the file that caused the exceptiondest - the expected destinationpublic void exceptionDeletingTargetFile(java.io.File target)
PollManager
exceptionDeletingTargetFile in interface PollManagertarget - the file that caused the exceptionpublic boolean isSuspended()
public void setSuspended(boolean suspended)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||