|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.simpleclient.SimpleSessionManager
Class to deal with sessions retrieves list of available sessions adds an active session removes a close session (the last client has been closed)
Constructor Summary | |
protected |
SimpleSessionManager(java.io.File sessionsFile)
|
Method Summary | |
int |
addSession(SessionHandle newSession)
adds SessionHandle me to the sessionList |
java.lang.String[] |
getCurrentSessions()
|
FileWatcher |
getSessionsWatcher()
make a new watcher object for the sessionsFile |
protected void |
removeSession(SessionHandle session)
Removes a session from the list of currently active session |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SimpleSessionManager(java.io.File sessionsFile) throws java.io.IOException
Method Detail |
public FileWatcher getSessionsWatcher()
public java.lang.String[] getCurrentSessions()
IClientFactory.getCurrentSessions()
public int addSession(SessionHandle newSession)
newSession
- session to add to the session list
protected void removeSession(SessionHandle session)
session
- SessionHandle of the session to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |