org.jdesktop.wonderland.client.cell
Class CellCacheConnection

java.lang.Object
  extended by org.jdesktop.wonderland.client.comms.BaseConnection
      extended by org.jdesktop.wonderland.client.cell.CellCacheConnection
All Implemented Interfaces:
ClientConnection

public class CellCacheConnection
extends BaseConnection

Handler for Cell cache information

Author:
jkaplan

Nested Class Summary
static interface CellCacheConnection.CellCacheMessageListener
          Listener interface for cell cache action messages
 
Nested classes/interfaces inherited from interface org.jdesktop.wonderland.client.comms.ClientConnection
ClientConnection.Status
 
Constructor Summary
CellCacheConnection(ClientView clientView)
           
 
Method Summary
 void addListener(CellCacheConnection.CellCacheMessageListener listener)
          Add a listener for cell cache actions.
 void connect(WonderlandSession session, java.util.Properties props)
          Connect this client to the given session with the given properties.
 void disconnected()
          Notify this client that it is disconnected from the current session
 ConnectionType getConnectionType()
          Get the type of client
 CellID getViewCellID()
           
 void handleMessage(Message message)
          Handle a message from the server
 
Methods inherited from class org.jdesktop.wonderland.client.comms.BaseConnection
addResponseListener, connect, connected, disconnect, getSession, getStatus, messageReceived, notifyResponseListener, send, send, sendAndWait, setStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellCacheConnection

public CellCacheConnection(ClientView clientView)
Method Detail

getConnectionType

public ConnectionType getConnectionType()
Get the type of client

Returns:
CellClientType.CELL_CLIENT_TYPE

addListener

public void addListener(CellCacheConnection.CellCacheMessageListener listener)
Add a listener for cell cache actions. This should be called during setup not once the system is running

Parameters:
listener -

handleMessage

public void handleMessage(Message message)
Handle a message from the server

Specified by:
handleMessage in class BaseConnection
Parameters:
message - the message to handle

connect

public void connect(WonderlandSession session,
                    java.util.Properties props)
             throws ConnectionFailureException
Connect this client to the given session with the given properties. Identical to calling session.connect(this, properties)

Overrides:
connect in class BaseConnection
Parameters:
session - the session to connect to
props - the properties to use while connecting
Throws:
ConnectionFailureException - if there is a problem connecting

getViewCellID

public CellID getViewCellID()

disconnected

public void disconnected()
Notify this client that it is disconnected from the current session

Specified by:
disconnected in interface ClientConnection
Overrides:
disconnected in class BaseConnection


Open Wonderland - http://openwonderland.org