|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.simpleclient.EventGeneratorThread
monitors watcher objects and generates events.
Field Summary | |
protected SessionFileWatcherElement |
clientfile
Watcher element for list of all the clientHandles for the session |
protected SessionFileWatcherElement |
storeFile
written to by client when its app calls storeDocument. |
protected VamsasFileWatcherElement |
vamsasfile
the session's vamsasDocument |
protected VamsasFileWatcherThread |
watchThread
thread watching all the session's file objects |
Method Summary | |
protected int |
countHandlersFor(java.lang.String event)
count handlers for a particular vamsas event |
void |
disableDocumentWatch()
|
protected boolean |
documentChanged(Lock doclock)
|
void |
enableDocumentWatch()
|
void |
interruptWatching()
|
boolean |
isDocumentWatchEnabled()
|
boolean |
isWatcherAlive()
|
void |
startWatching()
called to start the session watching thread which generates events |
void |
stopWatching()
|
protected boolean |
storeDocRequest(Lock lock)
|
protected void |
wait(int u)
|
protected Lock |
want_to_store()
client App requests offline storage of vamsas data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VamsasFileWatcherThread watchThread
protected SessionFileWatcherElement clientfile
protected VamsasFileWatcherElement vamsasfile
protected SessionFileWatcherElement storeFile
Method Detail |
protected boolean storeDocRequest(Lock lock)
protected boolean documentChanged(Lock doclock)
protected void wait(int u)
protected Lock want_to_store()
protected int countHandlersFor(java.lang.String event)
event
- string enumeration from uk.ac.vamsas.client.Events
public void disableDocumentWatch()
public boolean isDocumentWatchEnabled()
public void enableDocumentWatch()
public boolean isWatcherAlive()
public void interruptWatching()
public void startWatching()
public void stopWatching()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |