cgl.narada.protocol
Class ConnectionSetup

java.lang.Object
  extended by cgl.narada.protocol.ConnectionSetup

public class ConnectionSetup
extends Object

The Connection Setup, specifies the transport protocol, and information associated with the transport layer that are needed to effectively set up a server node.


Constructor Summary
ConnectionSetup(byte[] data)
          This reflects an unmarshalling of the connection setup information regarding a node that is received over a link
ConnectionSetup(int transport, int portNum)
          Creation of the Connection Setup, specifying the transport layer that needs to be employed and the portNum associated with the socket through which other nodes would communicate with the node in question
 
Method Summary
 byte[] getBytes()
          A marshalling of the connection setup information.
 int getPortNum()
          Returns the port number associated with the socket used for communication
 int getTransport()
          Returns the transport identifier associated with a certain connection setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionSetup

public ConnectionSetup(int transport,
                       int portNum)
Creation of the Connection Setup, specifying the transport layer that needs to be employed and the portNum associated with the socket through which other nodes would communicate with the node in question


ConnectionSetup

public ConnectionSetup(byte[] data)
This reflects an unmarshalling of the connection setup information regarding a node that is received over a link

Parameters:
data - - Representation of a connection as a sequence of bytes.
Method Detail

getTransport

public int getTransport()
Returns the transport identifier associated with a certain connection setup

Returns:
The transport layer over which this connection setup communicates.

getPortNum

public int getPortNum()
Returns the port number associated with the socket used for communication


getBytes

public byte[] getBytes()
A marshalling of the connection setup information. The unmarshalling is achieved through one of the constructors in this class

Returns:
A representation of the connection setup as a sequence of bytes.


For comments and suggestions please send e-mail to The NaradaBrokering Project