Rice Pastry API

rice.pastry.wire.messaging.socket
Class SocketTransportMessage

java.lang.Object
  |
  +--rice.pastry.wire.messaging.socket.SocketMessage
        |
        +--rice.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.

Version:
$Id: SocketTransportMessage.java,v 1.3 2003/06/10 18:29:03 amislove Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Constructor Summary
SocketTransportMessage(java.lang.Object o, rice.pastry.NodeId destination)
          Constructs a new message wrapping another object.
 
Method Summary
 rice.pastry.NodeId getDestination()
          Returns the destination node id
 java.lang.Object getObject()
          Returns the wrapped message
 java.lang.String toString()
           
 
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,
                              rice.pastry.NodeId destination)
Constructs a new message wrapping another object.

Parameters:
o - The object to be wrapped.
Method Detail

getObject

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

Returns:
The internally wrapped message.

getDestination

public rice.pastry.NodeId getDestination()
Returns the destination node id

Returns:
The destination node id

toString

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

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection