Rice Pastry 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 3564 2007-01-24 18:47:49Z 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()
          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

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()
Deprecated. 

Gets the Message attribute of the TestRouteMessage object

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

getMessage

public Message getMessage(MessageDeserializer md)
Specified by:
getMessage in interface RouteMessage

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

setMessage

public void setMessage(RawMessage message)
Description copied from interface: RouteMessage
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

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection