net.sourceforge.apphere
Class ClientController

java.lang.Object
  extended bynet.sourceforge.apphere.ClientController

public class ClientController
extends java.lang.Object

Author:
Dewi Roberts http://www.essex.ac.uk/chimera ClientController.java lets the AppHere server send commands to a client Created 19-Mar-2003 net.sourceforge.apphere

Constructor Summary
ClientController(java.net.InetAddress clientIP)
          Constructor ClientController.
ClientController(java.lang.String clientIPStr)
          Constructor ClientController.
 
Method Summary
 void closeSession(int sessID)
          Method closeSession tells client to close the specified session's application window.
 void doUpdate(int sessID)
          Method doUpdate tells client to update AppHere server with its latest state information.
 void loadSession(int sessID)
          Method loadSession tells client to open a shared application window and load the specified session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientController

public ClientController(java.net.InetAddress clientIP)
Constructor ClientController.


ClientController

public ClientController(java.lang.String clientIPStr)
                 throws java.net.UnknownHostException
Constructor ClientController.

Method Detail

loadSession

public void loadSession(int sessID)
                 throws java.io.IOException
Method loadSession tells client to open a shared application window and load the specified session. Session Transfer Step 4

Parameters:
sessID - of session to be loaded
Throws:
java.io.IOException

doUpdate

public void doUpdate(int sessID)
              throws java.io.IOException
Method doUpdate tells client to update AppHere server with its latest state information. Session Transfer Step 2

Parameters:
sessID - of session to be sent to server
Throws:
java.io.IOException

closeSession

public void closeSession(int sessID)
                  throws java.io.IOException
Method closeSession tells client to close the specified session's application window. This does not remove the session from AppHere server.

Parameters:
sessID - of session to close on client
Throws:
java.io.IOException