distrit.server
Class ClientRecord

java.lang.Object
  |
  +--distrit.server.ClientRecord

public class ClientRecord
extends java.lang.Object

Object representing a client connected to an Interactive Task Server. Used in Multiple Server setup to represent the allocation between servers and clients.


Field Summary
protected  ServerRecord allocatedServer
           
protected  java.lang.String name
           
protected  java.lang.Object realId
           
protected  java.lang.Object uid
           
 
Constructor Summary
ClientRecord(java.lang.Object uid, java.lang.String name)
          Creates a new instance of ClientRecord
 
Method Summary
 ServerRecord getAllocatedServer()
          Get method for the currently allocated server, ie.
 java.lang.String getName()
          Get method for this client's unique name
 java.lang.Object getRealId()
          Get method for the ID given to this client by its currently allocated server.
 void setAllocatedServer(ServerRecord allocatedServer)
          Set method for the currently allocated server, ie.
 void setRealId(java.lang.Object realId)
          Set method for the ID given to this client by its currently allocated server.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uid

protected java.lang.Object uid

name

protected java.lang.String name

realId

protected java.lang.Object realId

allocatedServer

protected ServerRecord allocatedServer
Constructor Detail

ClientRecord

public ClientRecord(java.lang.Object uid,
                    java.lang.String name)
Creates a new instance of ClientRecord
Parameters:
name - A unique name for this client
Method Detail

getName

public java.lang.String getName()
Get method for this client's unique name
Returns:
This client's unique name

getRealId

public java.lang.Object getRealId()
Get method for the ID given to this client by its currently allocated server. This is the ID by which the server refers to this client and may be equal to the ID another client is refered to by another server.
Returns:
ID given to this client by its currently allocated server

setRealId

public void setRealId(java.lang.Object realId)
Set method for the ID given to this client by its currently allocated server. This is the ID by which the server refers to this client and may be equal to the ID another client is refered to by another server.
Parameters:
realId - ID by which the currently allocated server refers to this client

getAllocatedServer

public ServerRecord getAllocatedServer()
Get method for the currently allocated server, ie. the server which this client is servicing. This is the server whose InteractiveTask returned by the getTask( ) method this client is running.
Returns:
ServerRecord object representing the server currently allocated to this client

setAllocatedServer

public void setAllocatedServer(ServerRecord allocatedServer)
Set method for the currently allocated server, ie. the server which this client is servicing. This is the server whose InteractiveTask returned by the getTask( ) method this client is running.
Parameters:
allocatedServer - The ServerRecord object of the server this client is now allocated to

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object