|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.messaging.Message
rice.pastry.routing.RouteMessage
A route message contains a pastry message that has been wrapped to be sent to another pastry node.
| Field Summary | |
NodeHandle |
nextHop
|
| Constructor Summary | |
RouteMessage(Id target,
Message msg,
Credentials cred)
Constructor. |
|
RouteMessage(Id target,
Message msg,
Credentials cred,
Address aux)
Constructor. |
|
RouteMessage(Id target,
Message msg,
Credentials cred,
SendOptions opts)
Constructor. |
|
RouteMessage(Id target,
Message msg,
Credentials cred,
SendOptions opts,
Address aux)
Constructor. |
|
RouteMessage(Id target,
Message msg,
NodeHandle firstHop,
Address aux)
Constructor. |
|
RouteMessage(NodeHandle dest,
Message msg,
Credentials cred,
SendOptions opts,
Address aux)
Constructor. |
|
| Method Summary | |
Address |
getDestination()
Get receiver address. |
Id |
getDestinationId()
Returns the destination Id for this message |
Message |
getMessage()
Returns the enclosed message inside of this message |
NodeHandle |
getNextHop()
|
NodeHandle |
getNextHopHandle()
Returns the next hop handle for this message |
SendOptions |
getOptions()
Get transmission options. |
NodeHandle |
getPrevNode()
|
Id |
getTarget()
Gets the target node id of this message. |
boolean |
hasPriority()
Get priority |
boolean |
routeMessage(NodeId localId)
Routes the messages if the next hop has been set up. |
void |
setDestinationId(Id id)
Sets the destination Id for this message |
void |
setMessage(Message message)
Sets the internal message for this message |
void |
setNextHop(NodeHandle nh)
|
void |
setNextHopHandle(NodeHandle nextHop)
Sets the next hop handle for this message |
void |
setPrevNode(NodeHandle n)
|
java.lang.String |
toString()
|
Message |
unwrap()
The wrapped message. |
| Methods inherited from class rice.pastry.messaging.Message |
getCredentials, getDate, getSenderId, getStream, setPriority, setSenderId, stamp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public transient NodeHandle nextHop
| Constructor Detail |
public RouteMessage(Id target,
Message msg,
Credentials cred)
target - this is id of the node the message will be routed to.msg - the wrapped message.cred - the credentials for the message.
public RouteMessage(Id target,
Message msg,
Credentials cred,
SendOptions opts)
target - this is id of the node the message will be routed to.msg - the wrapped message.cred - the credentials for the message.opts - the send options for the message.
public RouteMessage(NodeHandle dest,
Message msg,
Credentials cred,
SendOptions opts,
Address aux)
dest - the node this message will be routed tomsg - the wrapped message.cred - the credentials for the message.opts - the send options for the message.aux - an auxilary address which the message after each hop.
public RouteMessage(Id target,
Message msg,
Credentials cred,
Address aux)
target - this is id of the node the message will be routed to.msg - the wrapped message.cred - the credentials for the message.aux - an auxilary address which the message after each hop.
public RouteMessage(Id target,
Message msg,
Credentials cred,
SendOptions opts,
Address aux)
target - this is id of the node the message will be routed to.msg - the wrapped message.cred - the credentials for the message.opts - the send options for the message.aux - an auxilary address which the message after each hop.
public RouteMessage(Id target,
Message msg,
NodeHandle firstHop,
Address aux)
target - this is id of the node the message will be routed to.msg - the wrapped message.firstHop - the nodeHandle of the first hop destinationaux - an auxilary address which the message after each hop.| Method Detail |
public boolean routeMessage(NodeId localId)
localId - the node id of the local node.
public Id getTarget()
public NodeHandle getPrevNode()
public void setPrevNode(NodeHandle n)
public NodeHandle getNextHop()
public void setNextHop(NodeHandle nh)
public boolean hasPriority()
hasPriority in class Messagepublic Address getDestination()
getDestination in class Messagepublic Message unwrap()
public SendOptions getOptions()
public java.lang.String toString()
public Id getDestinationId()
RouteMessage
getDestinationId in interface RouteMessagepublic NodeHandle getNextHopHandle()
RouteMessage
getNextHopHandle in interface RouteMessagepublic Message getMessage()
RouteMessage
getMessage in interface RouteMessagepublic void setDestinationId(Id id)
RouteMessage
setDestinationId in interface RouteMessageid - The destination Idpublic void setNextHopHandle(NodeHandle nextHop)
RouteMessage
setNextHopHandle in interface RouteMessagenextHop - The next hop for this handlepublic void setMessage(Message message)
RouteMessage
setMessage in interface RouteMessagemessage - The internal message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||