rice.pastry.wire.messaging.datagram
Class AcknowledgementMessage

java.lang.Object
  extended byrice.pastry.wire.messaging.datagram.DatagramMessage
      extended byrice.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

Field Summary
 
Fields inherited from class rice.pastry.wire.messaging.datagram.DatagramMessage
destination, num, source
 
Constructor Summary
AcknowledgementMessage(NodeId source, 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()
          DESCRIBE THE METHOD
 
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

AcknowledgementMessage

public AcknowledgementMessage(NodeId source,
                              NodeId destination,
                              int num,
                              java.net.InetSocketAddress address)
Constructor.

Parameters:
address - The destination of the "ack" packet
num - The number of the original DatagramMessage.
source - DESCRIBE THE PARAMETER
destination - DESCRIBE THE PARAMETER
Method Detail

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





Imprint-Dataprotection