cgl.narada.transport.up2p.messages
Class Registration

java.lang.Object
  extended by cgl.narada.transport.up2p.messages.Registration
All Implemented Interfaces:
Serializable

public class Registration
extends Object
implements Serializable

Created on Aug 7, 2006

See Also:
Serialized Form

Constructor Summary
Registration(String id, SocketAddress addr)
           
 
Method Summary
static Registration createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a Registration object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 String getClientID()
           
 SocketAddress getPrivateAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registration

public Registration(String id,
                    SocketAddress addr)
Method Detail

getClientID

public final String getClientID()
Returns:
Returns the clientID.

getPrivateAddress

public final SocketAddress getPrivateAddress()
Returns:
Returns the privateAddress.

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static Registration createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a Registration object

Parameters:
objectBytes -
Returns:
Registration if successful, null if error occurs


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