amber.type.server
Class HandlerManager

java.lang.Object
  |
  +--amber.type.server.HandlerManager

public class HandlerManager
extends java.lang.Object

This class holds the handler manager for a particular type of incoming amber systems. The systems identify themselves using a single number.

Version:
1.0.0
Author:
Dr. David J. Knowles
See Also:
Core, ConnectionHandler

Field Summary
protected  ConnectionHandler handler
          The class which handles this type of incoming remote system.
protected  int id
          The number used by the remote system to identify the type of connection.
 
Constructor Summary
HandlerManager()
          Default Constructor.
HandlerManager(int id, ConnectionHandler handler)
          Initialising Constructor.
 
Method Summary
 ConnectionHandler getHandler()
          Gets the data in the following variable: The class which handles this type of incoming remote system.
 int getId()
          Gets the data in the following variable: The number used by the remote system to identify the type of connection.
 void setHandler(ConnectionHandler data)
          Sets the data in the following variable: The class which handles this type of incoming remote system.
 void setId(int data)
          Sets the data in the following variable: The number used by the remote system to identify the type of connection.
 java.lang.String toString()
          This function returns the String form of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected int id
The number used by the remote system to identify the type of connection.

handler

protected ConnectionHandler handler
The class which handles this type of incoming remote system.
Constructor Detail

HandlerManager

public HandlerManager()
Default Constructor.

HandlerManager

public HandlerManager(int id,
                      ConnectionHandler handler)
Initialising Constructor.
Parameters:
id - The number used by the remote system to identify the type of connection.
handler - The class which handles this type of incoming remote system.
Method Detail

getId

public int getId()
Gets the data in the following variable: The number used by the remote system to identify the type of connection.
Returns:
int containing the required information.

getHandler

public ConnectionHandler getHandler()
Gets the data in the following variable: The class which handles this type of incoming remote system.
Returns:
ConnectionHandler containing the required information.

setId

public void setId(int data)
Sets the data in the following variable: The number used by the remote system to identify the type of connection.
Parameters:
data - int containing the data to set the variable to.

setHandler

public void setHandler(ConnectionHandler data)
Sets the data in the following variable: The class which handles this type of incoming remote system.
Parameters:
data - ConnectionHandler containing the data to set the variable to.

toString

public java.lang.String toString()
This function returns the String form of the data.
Overrides:
toString in class java.lang.Object
Returns:
String containing the string version of this class.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.