Rice Pastry API

rice.pastry.wire.messaging.datagram
Class DatagramTransportMessage

java.lang.Object
  |
  +--rice.pastry.wire.messaging.datagram.DatagramMessage
        |
        +--rice.pastry.wire.messaging.datagram.DatagramTransportMessage
All Implemented Interfaces:
java.io.Serializable

public class DatagramTransportMessage
extends DatagramMessage

Message which is a "transport" message in the datagram protocol. It simply wraps an internal message for sending across the wire.

Version:
$Id: DatagramTransportMessage.java,v 1.2 2002/09/09 01:19:49 amislove Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.pastry.wire.messaging.datagram.DatagramMessage
destination, num, source
 
Constructor Summary
DatagramTransportMessage(rice.pastry.NodeId source, rice.pastry.NodeId destination, int num, java.lang.Object o)
          Builds a DatagramMessage given an object to wrap and a packet number
 
Method Summary
 java.lang.Object getObject()
          Returns the iternal wrapped object.
 java.lang.String toString()
           
 
Methods inherited from class rice.pastry.wire.messaging.datagram.DatagramMessage
getAck, getDestination, getNum, getSource, setNum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatagramTransportMessage

public DatagramTransportMessage(rice.pastry.NodeId source,
                                rice.pastry.NodeId destination,
                                int num,
                                java.lang.Object o)
Builds a DatagramMessage given an object to wrap and a packet number

Parameters:
o - The object to wrap
num - The "packet number"
Method Detail

getObject

public java.lang.Object getObject()
Returns the iternal wrapped object.

Returns:
The internal object

toString

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

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection