Added support for crashed client.
authorpmarguerite <pmarguerite@issues.jalview.org>
Fri, 18 May 2007 14:34:04 +0000 (14:34 +0000)
committerpmarguerite <pmarguerite@issues.jalview.org>
Fri, 18 May 2007 14:34:04 +0000 (14:34 +0000)
commit22a4a706dd9c2081f614577235224574bb37fe91
tree5c9cf1bdb375dd5bd1a6e5135d5aa5d8f631410f
parente4bdd840d03dfca1ebc51818eb9c15400b06fd58
Added support for crashed client.
Crashed client are removed correctly from the session client.
When a new client joins a session, it adds itself to the session client list and ensures that it is still in the list while it is active.
When a client wants to remove itself from the session, the client clears the session client list to check if it is the last client. (all actives clients should readd themself to the list during two watcher cycles, if the list is still empty. The client consideres itself as the last client of the session and closes properly the session)

git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@394 be28352e-c001-0410-b1a7-c7978e42abec
src/uk/ac/vamsas/client/simpleclient/ClientSessionFileWatcherElement.java [new file with mode: 0644]
src/uk/ac/vamsas/client/simpleclient/EventGeneratorThread.java
src/uk/ac/vamsas/client/simpleclient/SimpleClient.java
src/uk/ac/vamsas/client/simpleclient/VamsasSession.java
src/uk/ac/vamsas/client/simpleclient/WatcherElement.java