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
Method Summary |
java.net.InetSocketAddress |
getAddress()
Returns the address of the destination of this ack 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 |
AcknowledgementMessage
public AcknowledgementMessage(NodeId source,
NodeId destination,
int num,
java.net.InetSocketAddress address)
- Constructor.
- Parameters:
address
- The destination of the "ack" packetnum
- The number of the original DatagramMessage.source
- DESCRIBE THE PARAMETERdestination
- DESCRIBE THE PARAMETER
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()
- DESCRIBE THE METHOD
- Overrides:
toString
in class DatagramMessage
- Returns:
- DESCRIBE THE RETURN VALUE