|
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 NodeId |
destination
|
protected int |
num
|
protected NodeId |
source
|
| Constructor Summary | |
DatagramMessage(NodeId source,
NodeId destination,
int num)
Builds a DatagramMessage given a packet number |
|
| Method Summary | |
AcknowledgementMessage |
getAck(java.net.InetSocketAddress address)
Returns the approriate 'ack' message for this datagram transport message. |
NodeId |
getDestination()
Returns the NodeId which is the destination |
int |
getNum()
Returns the "packet number" of this transmission |
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 NodeId source
protected NodeId destination
| Constructor Detail |
public DatagramMessage(NodeId source,
NodeId destination,
int num)
num - The "packet number"| Method Detail |
public int getNum()
public void setNum(int num)
num - The packet numberpublic NodeId getSource()
public NodeId getDestination()
public 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 | ||||||||||