|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.routing.SendOptions
This is the options for a client to send messages.
Field Summary | |
static boolean |
defaultAllowMultipleHops
DESCRIBE THE FIELD |
static boolean |
defaultNoShortCuts
DESCRIBE THE FIELD |
static boolean |
defaultRandom
DESCRIBE THE FIELD |
static boolean |
defaultRerouteIfSuspected
DESCRIBE THE FIELD |
static boolean |
defaultShortestPath
DESCRIBE THE FIELD |
Constructor Summary | |
SendOptions()
Constructor. |
|
SendOptions(boolean random,
boolean noShortCuts,
boolean shortestPath,
boolean allowMultipleHops,
boolean rerouteIfSuspected)
Constructor. |
Method Summary | |
boolean |
canRandom()
Returns whether randomizations on the route are allowed. |
boolean |
makeNoShortCuts()
Returns whether it is required for each routing step to go to a node whose id matches in exactly one more digit. |
boolean |
multipleHopsAllowed()
Returns whether multiple hops are allowed during the transmission of this message. |
boolean |
requireShortestPath()
Returns whether it is required to go to the strictly nearest known node with appropriate node id. |
boolean |
rerouteIfSuspected()
DESCRIBE THE METHOD |
void |
setMultipleHopsAllowed(boolean b)
Sets the MultipleHopsAllowed attribute of the SendOptions object |
void |
setRerouteIfSuspected(boolean b)
Sets the RerouteIfSuspected attribute of the SendOptions object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean defaultRandom
public static final boolean defaultNoShortCuts
public static final boolean defaultShortestPath
public static final boolean defaultAllowMultipleHops
public static final boolean defaultRerouteIfSuspected
Constructor Detail |
public SendOptions()
public SendOptions(boolean random, boolean noShortCuts, boolean shortestPath, boolean allowMultipleHops, boolean rerouteIfSuspected)
random
- true if randomize the routenoShortCuts
- true if require each routing step to go to a node whose
id matches in exactly one more digitshortestPath
- true if require to go to the strictly nearest known
node with appropriate node idallowMultipleHops
- true if we allow multiple hops for this
transmission, false otherwise.rerouteIfSuspected
- DESCRIBE THE PARAMETERMethod Detail |
public void setMultipleHopsAllowed(boolean b)
b
- The new MultipleHopsAllowed valuepublic void setRerouteIfSuspected(boolean b)
b
- The new RerouteIfSuspected valuepublic boolean canRandom()
public boolean makeNoShortCuts()
public boolean requireShortestPath()
public boolean multipleHopsAllowed()
public boolean rerouteIfSuspected()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |