|
|||||||||||
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.SessionFileWatcherElement
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.
Field Summary |
Fields inherited from class uk.ac.vamsas.client.simpleclient.WatcherElement |
handler, handlerCalled, watcher, watchForChange |
Constructor Summary | |
SessionFileWatcherElement(SessionFile watcher,
WatcherCallBack handler)
create a new, enabled watch element |
|
SessionFileWatcherElement(SessionFile 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. |
SessionFile |
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 SessionFileWatcherElement(SessionFile watcher, WatcherCallBack handler)
watcher
- file being watchedhandler
- handler to call on state changepublic SessionFileWatcherElement(SessionFile watcher, WatcherCallBack handler, boolean enableWatching)
watcher
- handler
- enableWatching
- Method Detail |
protected void initWatch()
WatcherElement
initWatch
in class WatcherElement
protected void endWatch()
WatcherElement
endWatch
in class WatcherElement
public SessionFile 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 |