ePOST API

rice.p2p.past.testing
Class PastRegrTest.TestRouteMessage

java.lang.Object
  extended by rice.p2p.past.testing.PastRegrTest.TestRouteMessage
All Implemented Interfaces:
java.io.Serializable, RouteMessage
Enclosing class:
PastRegrTest

protected static class PastRegrTest.TestRouteMessage
extends java.lang.Object
implements RouteMessage

Utility class which simulates a route message

See Also:
Serialized Form

Constructor Summary
PastRegrTest.TestRouteMessage(Id id, NodeHandle nextHop, Message message)
           
 
Method Summary
 Id getDestinationId()
          Returns the destination Id for this message
 Message getMessage()
          Returns the enclosed message inside of this message
 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 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

PastRegrTest.TestRouteMessage

public PastRegrTest.TestRouteMessage(Id id,
                                     NodeHandle nextHop,
                                     Message message)
Method Detail

getDestinationId

public Id getDestinationId()
Description copied from interface: RouteMessage
Returns the destination Id for this message

Specified by:
getDestinationId in interface RouteMessage
Returns:
The destination Id

getNextHopHandle

public NodeHandle getNextHopHandle()
Description copied from interface: RouteMessage
Returns the next hop handle for this message

Specified by:
getNextHopHandle in interface RouteMessage
Returns:
The next hop

getMessage

public Message getMessage()
Description copied from interface: RouteMessage
Returns the enclosed message inside of this message

Specified by:
getMessage in interface RouteMessage
Returns:
The enclosed message

setDestinationId

public void setDestinationId(Id id)
Description copied from interface: RouteMessage
Sets the destination Id for this message

Specified by:
setDestinationId in interface RouteMessage
Parameters:
id - The destination Id

setNextHopHandle

public void setNextHopHandle(NodeHandle nextHop)
Description copied from interface: RouteMessage
Sets the next hop handle for this message

Specified by:
setNextHopHandle in interface RouteMessage
Parameters:
nextHop - The next hop for this handle

setMessage

public void setMessage(Message message)
Description copied from interface: RouteMessage
Sets the internal message for this message

Specified by:
setMessage in interface RouteMessage
Parameters:
message - The internal message

ePOST API

Copyright © 2001-2005 - Rice Pastry.