|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.scribe.testing.ScribeRegrTest.TestRouteMessage
protected static class ScribeRegrTest.TestRouteMessage
Utility class which simulates a route message
Constructor Summary | |
---|---|
ScribeRegrTest.TestRouteMessage(Id id,
NodeHandle nextHop,
Message message)
Constructor for TestRouteMessage. |
Method Summary | |
---|---|
Id |
getDestinationId()
Gets the DestinationId attribute of the TestRouteMessage object |
Message |
getMessage()
Deprecated. |
Message |
getMessage(MessageDeserializer md)
|
NodeHandle |
getNextHopHandle()
Gets the NextHopHandle attribute of the TestRouteMessage object |
void |
setDestinationId(Id id)
Sets the DestinationId attribute of the TestRouteMessage object |
void |
setMessage(Message message)
Sets the Message attribute of the TestRouteMessage object |
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 NextHopHandle attribute of the TestRouteMessage object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScribeRegrTest.TestRouteMessage(Id id, NodeHandle nextHop, Message message)
id
- DESCRIBE THE PARAMETERnextHop
- DESCRIBE THE PARAMETERmessage
- DESCRIBE THE PARAMETERMethod Detail |
---|
public Id getDestinationId()
getDestinationId
in interface RouteMessage
public NodeHandle getNextHopHandle()
getNextHopHandle
in interface RouteMessage
public Message getMessage()
getMessage
in interface RouteMessage
public Message getMessage(MessageDeserializer md)
getMessage
in interface RouteMessage
public void setDestinationId(Id id)
setDestinationId
in interface RouteMessage
id
- The new DestinationId valuepublic void setNextHopHandle(NodeHandle nextHop)
setNextHopHandle
in interface RouteMessage
nextHop
- The new NextHopHandle valuepublic void setMessage(Message message)
setMessage
in interface RouteMessage
message
- The new Message valuepublic 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 |