|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.past.testing.PastRegrTest.TestRouteMessage
protected static class PastRegrTest.TestRouteMessage
Utility class which simulates a route message
Constructor Summary | |
---|---|
PastRegrTest.TestRouteMessage(Id id,
NodeHandle nextHop,
Message message)
|
Method Summary | |
---|---|
Id |
getDestinationId()
Returns the destination Id for this message |
Message |
getMessage()
Deprecated. |
Message |
getMessage(MessageDeserializer md)
|
NodeHandle |
getNextHopHandle()
Returns the next hop handle for this message |
void |
setDestinationId(Id id)
Sets the destination Id for this message |
void |
setMessage(Message message)
Sets the internal message for this message |
void |
setMessage(RawMessage message)
Sets the internal message for this message Does the same as setMessage(Message) but with better performance, because it doesn't have to introspect if the message is a RawMessage |
void |
setNextHopHandle(NodeHandle nextHop)
Sets the next hop handle for this message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PastRegrTest.TestRouteMessage(Id id, NodeHandle nextHop, Message message)
Method Detail |
---|
public Id getDestinationId()
RouteMessage
getDestinationId
in interface RouteMessage
public NodeHandle getNextHopHandle()
RouteMessage
getNextHopHandle
in interface RouteMessage
public Message getMessage()
RouteMessage
getMessage
in interface RouteMessage
public Message getMessage(MessageDeserializer md)
getMessage
in interface RouteMessage
public void setDestinationId(Id id)
RouteMessage
setDestinationId
in interface RouteMessage
id
- The destination Idpublic void setNextHopHandle(NodeHandle nextHop)
RouteMessage
setNextHopHandle
in interface RouteMessage
nextHop
- The next hop for this handlepublic void setMessage(Message message)
RouteMessage
setMessage
in interface RouteMessage
message
- The internal messagepublic void setMessage(RawMessage message)
RouteMessage
setMessage
in interface RouteMessage
message
- The internal message
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |