ePOST API

rice.p2p.scribe.testing
Class ScribeRegrTest.TestRouteMessage

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

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

Utility class which simulates a route message

Version:
$Id: ScribeRegrTest.java 3038 2006-02-07 10:01:01Z jeffh $
Author:
amislove
See Also:
Serialized Form

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()
          Gets the Message attribute of the TestRouteMessage object
 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 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

ScribeRegrTest.TestRouteMessage

public ScribeRegrTest.TestRouteMessage(Id id,
                                       NodeHandle nextHop,
                                       Message message)
Constructor for TestRouteMessage.

Parameters:
id - DESCRIBE THE PARAMETER
nextHop - DESCRIBE THE PARAMETER
message - DESCRIBE THE PARAMETER
Method Detail

getDestinationId

public Id getDestinationId()
Gets the DestinationId attribute of the TestRouteMessage object

Specified by:
getDestinationId in interface RouteMessage
Returns:
The DestinationId value

getNextHopHandle

public NodeHandle getNextHopHandle()
Gets the NextHopHandle attribute of the TestRouteMessage object

Specified by:
getNextHopHandle in interface RouteMessage
Returns:
The NextHopHandle value

getMessage

public Message getMessage()
Gets the Message attribute of the TestRouteMessage object

Specified by:
getMessage in interface RouteMessage
Returns:
The Message value

setDestinationId

public void setDestinationId(Id id)
Sets the DestinationId attribute of the TestRouteMessage object

Specified by:
setDestinationId in interface RouteMessage
Parameters:
id - The new DestinationId value

setNextHopHandle

public void setNextHopHandle(NodeHandle nextHop)
Sets the NextHopHandle attribute of the TestRouteMessage object

Specified by:
setNextHopHandle in interface RouteMessage
Parameters:
nextHop - The new NextHopHandle value

setMessage

public void setMessage(Message message)
Sets the Message attribute of the TestRouteMessage object

Specified by:
setMessage in interface RouteMessage
Parameters:
message - The new Message value

ePOST API

Copyright © 2001-2005 - Rice Pastry.