Rice Pastry API

rice.p2p.multiring
Class MultiringRouteMessage

java.lang.Object
  extended byrice.p2p.multiring.MultiringRouteMessage
All Implemented Interfaces:
RouteMessage, java.io.Serializable

public class MultiringRouteMessage
extends java.lang.Object
implements RouteMessage

Version:
$Id: MultiringRouteMessage.java 3274 2006-05-15 16:17:47Z jeffh $
Author:
Alan Mislove, Peter Druschel
See Also:
Serialized Form

Field Summary
protected  RouteMessage message
          The internal message
protected  Id ringId
          The messages's ringId
 
Constructor Summary
protected MultiringRouteMessage(Id ringId, RouteMessage message)
          Constructor
 
Method Summary
 Id getDestinationId()
          Returns the destination Id for this message
 Message getMessage()
          Returns the enclosed message inside of this message
 Message getMessage(MessageDeserializer md)
          Gets the Message attribute of the MultiringRouteMessage object
 NodeHandle getNextHopHandle()
          Returns the next hop handle for this message
protected  RouteMessage getRouteMessage()
          Returns the internal route message
 void setDestinationId(Id id)
          Sets the destination Id for this message
 void setMessage(Message message)
          Sets the internal message for this message
 void setMessage(RawMessage message)
          Better performance.
 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
 

Field Detail

message

protected RouteMessage message
The internal message


ringId

protected Id ringId
The messages's ringId

Constructor Detail

MultiringRouteMessage

protected MultiringRouteMessage(Id ringId,
                                RouteMessage message)
Constructor

Parameters:
ringId - DESCRIBE THE PARAMETER
message - DESCRIBE THE PARAMETER
Method Detail

getRouteMessage

protected RouteMessage getRouteMessage()
Returns the internal route message

Returns:
The internal route message

getDestinationId

public Id getDestinationId()
Returns the destination Id for this message

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

getNextHopHandle

public NodeHandle getNextHopHandle()
Returns the next hop handle for this message

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

getMessage

public Message getMessage()
Returns the enclosed message inside of this message

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

getMessage

public Message getMessage(MessageDeserializer md)
                   throws java.io.IOException
Gets the Message attribute of the MultiringRouteMessage object

Specified by:
getMessage in interface RouteMessage
Parameters:
md - DESCRIBE THE PARAMETER
Returns:
The Message value
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

setDestinationId

public void setDestinationId(Id id)
Sets the destination Id for this message

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

setNextHopHandle

public void setNextHopHandle(NodeHandle nextHop)
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)
Sets the internal message for this message

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

setMessage

public void setMessage(RawMessage message)
Better performance.

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection