Rice Pastry API

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

Field Summary
 
Fields inherited from class rice.pastry.wire.messaging.datagram.DatagramMessage
destination, num, source
 
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 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(rice.pastry.NodeId source,
                              rice.pastry.NodeId destination,
                              int num,
                              java.net.InetSocketAddress address)
Constructor.

Parameters:
address - The destination of the "ack" packet
num - The number of the original DatagramMessage.
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()
Overrides:
toString in class DatagramMessage

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection