|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.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
DESCRIBE THE FIELD |
protected int |
num
DESCRIBE THE FIELD |
protected NodeId |
source
DESCRIBE THE FIELD |
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()
DESCRIBE THE METHOD |
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"source
- DESCRIBE THE PARAMETERdestination
- DESCRIBE THE PARAMETERMethod Detail |
public int getNum()
public NodeId getSource()
public NodeId getDestination()
public AcknowledgementMessage getAck(java.net.InetSocketAddress address)
address
- The address the ack will be sent to
public void setNum(int num)
num
- The packet numberpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |