|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.wire.messaging.datagram.DatagramMessage
Class which wraps all messages to be sent through the UDP-based pastry protocol. Adds on a "packet number" which should be repeated in the AcknowledgementMessage ack packet.
Field Summary | |
protected rice.pastry.NodeId |
destination
|
protected int |
num
|
protected rice.pastry.NodeId |
source
|
Constructor Summary | |
DatagramMessage(rice.pastry.NodeId source,
rice.pastry.NodeId destination,
int num)
Builds a DatagramMessage given a packet number |
Method Summary | |
rice.pastry.wire.messaging.datagram.AcknowledgementMessage |
getAck(java.net.InetSocketAddress address)
Returns the approriate 'ack' message for this datagram transport message. |
rice.pastry.NodeId |
getDestination()
Returns the NodeId which is the destination |
int |
getNum()
Returns the "packet number" of this transmission |
rice.pastry.NodeId |
getSource()
Returns the NodeId from which this message came. |
void |
setNum(int num)
Sets the "packet number" of this transmission |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int num
protected rice.pastry.NodeId source
protected rice.pastry.NodeId destination
Constructor Detail |
public DatagramMessage(rice.pastry.NodeId source, rice.pastry.NodeId destination, int num)
num
- The "packet number"Method Detail |
public int getNum()
public void setNum(int num)
num
- The packet numberpublic rice.pastry.NodeId getSource()
public rice.pastry.NodeId getDestination()
public rice.pastry.wire.messaging.datagram.AcknowledgementMessage getAck(java.net.InetSocketAddress address)
address
- The address the ack will be sent topublic java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |