rice.pastry.wire.messaging.datagram
Class AcknowledgementMessage
java.lang.Object
|
+--rice.pastry.wire.messaging.datagram.DatagramMessage
|
+--rice.pastry.wire.messaging.datagram.AcknowledgementMessage
- All Implemented Interfaces:
- java.io.Serializable
- public class AcknowledgementMessage
- extends DatagramMessage
Class which represents an "ack" packet in the UDP version
of the pastry wire protocol. Each DatagramMessage is assigned
a integer number (increasing), and each "ack" packet sent back
contains that number.
- See Also:
- Serialized Form
Constructor Summary |
AcknowledgementMessage(rice.pastry.NodeId source,
rice.pastry.NodeId destination,
int num,
java.net.InetSocketAddress address)
Constructor. |
Method Summary |
java.net.InetSocketAddress |
getAddress()
Returns the address of the destination of this ack message. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AcknowledgementMessage
public AcknowledgementMessage(rice.pastry.NodeId source,
rice.pastry.NodeId destination,
int num,
java.net.InetSocketAddress address)
- Constructor.
- Parameters:
address
- The destination of the "ack" packetnum
- The number of the original DatagramMessage.
getAddress
public java.net.InetSocketAddress getAddress()
- Returns the address of the destination of this ack message.
- Returns:
- The destination address of the ack message.
toString
public java.lang.String toString()
- Overrides:
toString
in class DatagramMessage
Copyright © 2001 - Rice Pastry.