rice.pastry.wire.messaging.socket
Class SocketTransportMessage

java.lang.Object
  extended byrice.pastry.wire.messaging.socket.SocketMessage
      extended byrice.pastry.wire.messaging.socket.SocketTransportMessage
All Implemented Interfaces:
java.io.Serializable

public class SocketTransportMessage
extends SocketMessage

Class which represents a wrapper message sent across the socket-based protocol - it has another message inside of it.

See Also:
Serialized Form

Constructor Summary
SocketTransportMessage(java.lang.Object o, NodeId destination)
          Constructs a new message wrapping another object.
 
Method Summary
 NodeId getDestination()
          Returns the destination node id
 java.lang.Object getObject()
          Returns the wrapped message
 java.lang.String toString()
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketTransportMessage

public SocketTransportMessage(java.lang.Object o,
                              NodeId destination)
Constructs a new message wrapping another object.

Parameters:
o - The object to be wrapped.
destination - DESCRIBE THE PARAMETER
Method Detail

getObject

public java.lang.Object getObject()
Returns the wrapped message

Returns:
The internally wrapped message.

getDestination

public NodeId getDestination()
Returns the destination node id

Returns:
The destination node id

toString

public java.lang.String toString()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE





Imprint-Dataprotection