Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
rice.pastry.Id

Packages that use Id
rice.pastry |
rice.pastry.client |
rice.pastry.leafset |
rice.pastry.routing |
rice.pastry.testing |

Uses of Id in rice.pastry

Subclasses of Id in rice.pastry
`class` | `NodeId` Represents a Pastry identifier for a node.

Methods in rice.pastry that return Id
`Id` | `Id.getCW()` gets the Id just clockwise from this
`Id` | `Id.getCCW()` gets the Id just counterclockwise from this
`Id` | `Id.getDomainPrefix(int row, int column, int suffixDigit, int b)` produces a Id whose prefix up to row is identical to this, followed by a digit with value column, followed by a suffix of digits with value suffixDigits.
`Id` | `Id.getAlternateId(int num, int b, int i)` produces a set of ids (keys) that are evenly distributed around the id ring.
`Id` | `Id.add(Id.Distance offset)` Returns an Id corresponding to this Id plus a given distance
`static Id` | `Id.makeRandomId(java.util.Random rng)` Creates a random Id.
`static Id` | `Id.build(int[] material)` Constructor.
`static Id` | `Id.build(java.lang.String hex)` Constructor, which takes the output of a toStringFull() and converts it back into an Id.
`static Id` | `Id.build(char[] chars, int offset, int length)` Constructor, which takes the output of a toStringFull() and converts it back into an Id.
`static Id` | `Id.build(byte[] material)` Constructor.
`static Id` | `Id.build()` Constructor.
`protected static Id` | `Id.resolve(java.util.WeakHashMap map, Id id)` Method which performs the coalescing and interaction with the weak hash map
`Id` | `IdRange.getCCW()` get counterclockwise edge of range
`Id` | `IdRange.getCW()` get clockwise edge of range
`Id` | `IdSet.minMember()` return the smallest member id
`Id` | `IdSet.maxMember()` return the largest member id

Methods in rice.pastry with parameters of type Id
`boolean` | `Id.isBetween(Id ccw, Id cw)` Checks if this Id is between two given ids ccw (inclusive) and cw (exclusive) on the circle
`Id.Distance` | `Id.distance(Id nid)` Returns the shorter numerical distance on the ring between a pair of Ids.
`Id.Distance` | `Id.longDistance(Id nid)` Returns the longer numerical distance on the ring between a pair of Ids.
`boolean` | `Id.equals(Id nid)` Equivalence relation for Ids.
`boolean` | `Id.clockwise(Id nid)` Checks to see if the Id nid is clockwise or counterclockwise from this, on the ring.
`int` | `Id.indexOfMSDB(Id nid)` Returns the index of the most significant differing bit (MSDB).
`int` | `Id.indexOfMSDD(Id nid, int base)` Returns the index of the most significant different digit (MSDD) in a given base.
`protected static Id` | `Id.resolve(java.util.WeakHashMap map, Id id)` Method which performs the coalescing and interaction with the weak hash map
`boolean` | `IdRange.contains(Id key)` test if a given key lies within this range
`boolean` | `IdSet.isMember(Id id)` test membership
`void` | `IdSet.addMember(Id id)` add a member
`void` | `IdSet.removeMember(Id id)` remove a member
`IdSet` | `IdSet.subSet(Id from, Id to)` return a subset of this set, consisting of the member ids in a given range

Constructors in rice.pastry with parameters of type Id
`IdRange(Id ccw, Id cw)` Constructor.

Uses of Id in rice.pastry.client

Methods in rice.pastry.client with parameters of type Id
`void` | `CommonAPIAppl.route(Id key, Message msg, NodeHandle hint)` This operation forwards a message towards the root of key.
`NodeSet` | `CommonAPIAppl.localLookup(Id key, int num, boolean safe)` This method produces a list of nodes that can be used as next hops on a route towards key, such that the resulting route satisfies the overlay protocol's bounds on the number of hops taken.
`NodeSet` | `CommonAPIAppl.replicaSet(Id key, int max_rank)` This method returns an ordered set of nodehandles on which replicas of the object with key can be stored.
`IdRange` | `CommonAPIAppl.range(NodeHandle n, int r, Id key, boolean cumulative)` This method provides information about ranges of keys for which the node n is currently a r-root.
`IdRange` | `CommonAPIAppl.range(NodeHandle n, int r, Id key)` This method provides information about ranges of keys for which the node n is currently a r-root.
`abstract void` | `CommonAPIAppl.deliver(Id key, Message msg)` Called by pastry when a message arrives for this application.
`void` | `PastryAppl.routeMsg(Id key, Message msg, Credentials cred, SendOptions opt)` Routes a message to the live node D with nodeId numerically closest to key (at the time of delivery).
`boolean` | `PastryAppl.enrouteMessage(Message msg, Id key, NodeId nextHop, SendOptions opt)` Called by pastry when a message is enroute and is passing through this node.

Uses of Id in rice.pastry.leafset

Methods in rice.pastry.leafset with parameters of type Id
`int` | `LeafSet.mostSimilar(Id nid)` Numerically closests node to a given a node in the leaf set.
`NodeSet` | `LeafSet.replicaSet(Id key, int max)` compute an ordered set of nodes, in order of numerical closeness to a given key
`int` | `SimilarSet.mostSimilar(Id nid)` Numerically closest node to a given a node.

Uses of Id in rice.pastry.routing

Methods in rice.pastry.routing that return Id
`Id` | `RouteMessage.getTarget()` Gets the target node id of this message.

Methods in rice.pastry.routing with parameters of type Id
`RouteSet` | `RoutingTable.getBestEntry(Id key)` Gets the set of handles that match at least one more digit of the key than the local nodeId.
`NodeHandle` | `RoutingTable.bestAlternateRoute(Id key)` Determines an alternate hop numerically closer to the key than the one we are at.
`NodeHandle` | `RoutingTable.bestAlternateRoute(int minLiveness, Id key)` Determines an alternate hop numerically closer to the key than the one we are at.
`NodeSet` | `RoutingTable.alternateRoutes(Id key, int max)` Determines a set of alternate hops towards a given key.

Constructors in rice.pastry.routing with parameters of type Id
`RouteMessage(Id target, Message msg, Credentials cred)` Constructor.
`RouteMessage(Id target, Message msg, Credentials cred, SendOptions opts)` Constructor.
`RouteMessage(Id target, Message msg, Credentials cred, Address aux)` Constructor.
`RouteMessage(Id target, Message msg, Credentials cred, SendOptions opts, Address aux)` Constructor.
`RouteMessage(Id target, Message msg, NodeHandle firstHop, Address aux)` Constructor.

Uses of Id in rice.pastry.testing

Methods in rice.pastry.testing that return Id
`Id` | `IdRangeUnit.createIdWithPrefix(byte b)` DESCRIBE THE METHOD

Methods in rice.pastry.testing with parameters of type Id
`boolean` | `HelloWorldApp.enrouteMessage(Message msg, Id key, NodeId nextHop, SendOptions opt)` Invoked on intermediate nodes in routing path.
`IdRange` | `IdRangeUnit.createIdRangeStartingWith(Id ccw)` DESCRIBE THE METHOD
`IdRange` | `IdRangeUnit.createIdRangeEndingIn(Id cw)` DESCRIBE THE METHOD
`boolean` | `Ping.enrouteMessage(Message msg, Id from, NodeId nextHop, SendOptions opt)` DESCRIBE THE METHOD
`boolean` | `PingClient.enrouteMessage(Message msg, Id from, NodeId nextHop, SendOptions opt)` DESCRIBE THE METHOD
`void` | `RegrTestApp.deliver(Id key, Message msg)` DESCRIBE THE METHOD

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV NEXT | FRAMES NO FRAMES

Copyright © 2001-2005 - Rice Pastry.