|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.ac.vamsas.client.simpleclient.WatcherElement
uk.ac.vamsas.client.simpleclient.SessionFlagWatcherElement
Element of the VamsasFileWatcherThread event generator chain. Keep a reference to this element before adding it to the chain in order to control the generation of events with halt and enable. doWatch will do nothing if the element is not enabled. TODO: TEST THIS CLASS - not yet used in SimpleClient
| Field Summary |
| Fields inherited from class uk.ac.vamsas.client.simpleclient.WatcherElement |
handler, handlerCalled, watcher, watchForChange |
| Constructor Summary | |
SessionFlagWatcherElement(SessionFlagFile watcher,
WatcherCallBack handler)
create a new, enabled watch element |
|
SessionFlagWatcherElement(SessionFlagFile watcher,
WatcherCallBack handler,
boolean enableWatching)
new watcher with flag to initially skip watching this sessionfile |
|
| Method Summary | |
protected void |
endWatch()
called by haltWatch before clearing the FileWatcher reference. |
protected java.lang.String |
getSubject()
implemented for debug information purposes. |
SessionFlagFile |
getWatched()
|
protected void |
initWatch()
called to generate the watcher object by enableWatch and in doWatch |
| Methods inherited from class uk.ac.vamsas.client.simpleclient.WatcherElement |
callHandler, doWatch, enableWatch, getHandler, getWatcher, haltWatch, isHandlerCalled, isWatchEnabled, setHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionFlagWatcherElement(SessionFlagFile watcher,
WatcherCallBack handler)
watcher - file being watchedhandler - handler to call on state change
public SessionFlagWatcherElement(SessionFlagFile watcher,
WatcherCallBack handler,
boolean enableWatching)
watcher - handler - enableWatching - | Method Detail |
protected void initWatch()
WatcherElement
initWatch in class WatcherElementprotected void endWatch()
WatcherElement
endWatch in class WatcherElementpublic SessionFlagFile getWatched()
protected java.lang.String getSubject()
WatcherElement
getSubject in class WatcherElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||