Rice Pastry API

rice.p2p.past.testing
Class RawPastRegrTest.TestRouteMessage

java.lang.Object
  extended byrice.p2p.past.testing.RawPastRegrTest.TestRouteMessage
All Implemented Interfaces:
RouteMessage, java.io.Serializable
Enclosing class:
RawPastRegrTest

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

Utility class which simulates a route message

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
jeffh
See Also:
Serialized Form

Constructor Summary
RawPastRegrTest.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
 Message getMessage(MessageDeserializer md)
          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 setMessage(RawMessage 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

RawPastRegrTest.TestRouteMessage

public RawPastRegrTest.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

getMessage

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

Specified by:
getMessage in interface RouteMessage
Parameters:
md - DESCRIBE THE PARAMETER
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

setMessage

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

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection