Rice Pastry API

rice.p2p.multiring
Class MultiringRouteMessage

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

public class MultiringRouteMessage
extends java.lang.Object
implements RouteMessage

Version:
$Id: MultiringRouteMessage.java 3613 2007-02-15 14:45:14Z jstewart $
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()
          Deprecated. Use getMessages(MessageDeserializer)
 Message getMessage(MessageDeserializer md)
           
 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

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

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
Specified by:
getMessage in interface RouteMessage
Throws:
java.io.IOException

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 internal message

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection