|
Rice Pastry API | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Id | |
rice.pastry | |
rice.pastry.client | |
rice.pastry.leafset | |
rice.pastry.multiring | |
rice.pastry.routing | |
rice.pastry.testing | |
rice.rm | |
rice.rm.messaging | |
rice.rm.testing | |
rice.scribe |
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 | |
static rice.pastry.Id |
Id.makeRandomId(java.util.Random rng)
Creates a random Id. |
rice.pastry.Id |
Id.getCW()
gets the Id just clockwise from this |
rice.pastry.Id |
Id.getCCW()
gets the Id just counterclockwise from this |
rice.pastry.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. |
rice.pastry.Id |
Id.getAlternateId(int num,
int b,
int i)
produces a set of ids (keys) that are evenly distributed around the id ring. |
rice.pastry.Id |
Id.add(Id.Distance offset)
Returns an Id corresponding to this Id plus a given distance |
rice.pastry.Id |
IdRange.getCCW()
get counterclockwise edge of range |
rice.pastry.Id |
IdRange.getCW()
get clockwise edge of range |
rice.pastry.Id |
IdSet.minMember()
return the smallest member id |
rice.pastry.Id |
IdSet.maxMember()
return the largest member id |
rice.pastry.Id |
IdSet.getHash()
compute a fingerprint of the members in this IdSet |
Methods in rice.pastry with parameters of type Id | |
boolean |
Id.isBetween(rice.pastry.Id ccw,
rice.pastry.Id cw)
Checks if this Id is between two given ids ccw (inclusive) and cw (exclusive) on the circle |
boolean |
Id.isBetween(rice.pastry.Id ccw,
rice.pastry.Id cw)
Checks if this Id is between two given ids ccw (inclusive) and cw (exclusive) on the circle |
Id.Distance |
Id.distance(rice.pastry.Id nid)
Returns the shorter numerical distance on the ring between a pair of Ids. |
Id.Distance |
Id.longDistance(rice.pastry.Id nid)
Returns the longer numerical distance on the ring between a pair of Ids. |
void |
Id.xor(rice.pastry.Id otherId)
Xor operator for Ids. |
boolean |
Id.equals(rice.pastry.Id nid)
Equivalence relation for Ids. |
boolean |
Id.clockwise(rice.pastry.Id nid)
Checks to see if the Id nid is clockwise or counterclockwise from this, on the ring. |
int |
Id.indexOfMSDB(rice.pastry.Id nid)
Returns the index of the most significant differing bit (MSDB). |
int |
Id.indexOfMSDD(rice.pastry.Id nid,
int base)
Returns the index of the most significant different digit (MSDD) in a given base. |
boolean |
IdRange.contains(rice.pastry.Id key)
test if a given key lies within this range |
void |
IdSet.addMember(rice.pastry.Id id)
add a member |
void |
IdSet.removeMember(rice.pastry.Id id)
remove a member |
boolean |
IdSet.isMember(rice.pastry.Id id)
test membership |
rice.pastry.IdSet |
IdSet.subSet(rice.pastry.Id from,
rice.pastry.Id to)
return a subset of this set, consisting of the member ids in a given range |
rice.pastry.IdSet |
IdSet.subSet(rice.pastry.Id from,
rice.pastry.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(rice.pastry.Id ccw,
rice.pastry.Id cw)
Constructor. |
|
IdRange(rice.pastry.Id ccw,
rice.pastry.Id cw)
Constructor. |
Uses of Id in rice.pastry.client |
Methods in rice.pastry.client with parameters of type Id | |
void |
CommonAPIAppl.route(rice.pastry.Id key,
rice.pastry.messaging.Message msg,
rice.pastry.NodeHandle hint)
This operation forwards a message towards the root of key. |
rice.pastry.NodeSet |
CommonAPIAppl.localLookup(rice.pastry.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. |
rice.pastry.NodeSet |
CommonAPIAppl.replicaSet(rice.pastry.Id key,
int max_rank)
This method returns an ordered set of nodehandles on which replicas of the object with key can be stored. |
rice.pastry.IdRange |
CommonAPIAppl.range(rice.pastry.NodeHandle n,
int r,
rice.pastry.Id key,
boolean cumulative)
This method provides information about ranges of keys for which the node n is currently a r-root. |
rice.pastry.IdRange |
CommonAPIAppl.range(rice.pastry.NodeHandle n,
int r,
rice.pastry.Id key)
This method provides information about ranges of keys for which the node n is currently a r-root. |
abstract void |
CommonAPIAppl.deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
Called by pastry when a message arrives for this application. |
void |
PastryAppl.routeMsg(rice.pastry.Id key,
rice.pastry.messaging.Message msg,
rice.pastry.security.Credentials cred,
rice.pastry.routing.SendOptions opt)
Routes a message to the live node D with nodeId numerically closest to key (at the time of delivery). |
boolean |
PastryAppl.enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id key,
rice.pastry.NodeId nextHop,
rice.pastry.routing.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(rice.pastry.Id nid)
Numerically closests node to a given a node in the leaf set. |
rice.pastry.NodeSet |
LeafSet.replicaSet(rice.pastry.Id key,
int max)
compute an ordered set of nodes, in order of numerical closeness to a given key |
int |
SimilarSet.mostSimilar(rice.pastry.Id nid)
Numerically closest node to a given a node. |
Uses of Id in rice.pastry.multiring |
Subclasses of Id in rice.pastry.multiring | |
class |
RingNodeId
This class represents a nodeId, combined with a ring-identfying Id. |
Uses of Id in rice.pastry.routing |
Methods in rice.pastry.routing that return Id | |
rice.pastry.Id |
RouteMessage.getTarget()
Gets the target node id of this message. |
Methods in rice.pastry.routing with parameters of type Id | |
rice.pastry.NodeHandle |
RoutingTable.bestAlternateRoute(rice.pastry.Id key)
Determines an alternate hop numerically closer to the key than the one we are at. |
rice.pastry.NodeSet |
RoutingTable.alternateRoutes(rice.pastry.Id key,
int max)
Determines a set of alternate hops towards a given key. |
rice.pastry.routing.RouteSet |
RoutingTable.getBestEntry(rice.pastry.Id key)
Gets the set of handles that match at least one more digit of the key than the local nodeId. |
Constructors in rice.pastry.routing with parameters of type Id | |
RouteMessage(rice.pastry.Id target,
rice.pastry.messaging.Message msg,
rice.pastry.security.Credentials cred)
Constructor. |
|
RouteMessage(rice.pastry.Id target,
rice.pastry.messaging.Message msg,
rice.pastry.security.Credentials cred,
rice.pastry.routing.SendOptions opts)
Constructor. |
|
RouteMessage(rice.pastry.Id target,
rice.pastry.messaging.Message msg,
rice.pastry.security.Credentials cred,
rice.pastry.messaging.Address aux)
Constructor. |
|
RouteMessage(rice.pastry.Id target,
rice.pastry.messaging.Message msg,
rice.pastry.security.Credentials cred,
rice.pastry.routing.SendOptions opts,
rice.pastry.messaging.Address aux)
Constructor. |
|
RouteMessage(rice.pastry.Id target,
rice.pastry.messaging.Message msg,
rice.pastry.NodeHandle firstHop,
rice.pastry.messaging.Address aux)
Constructor. |
Uses of Id in rice.pastry.testing |
Methods in rice.pastry.testing that return Id | |
rice.pastry.Id |
IdRangeUnit.createIdWithPrefix(byte b)
|
Methods in rice.pastry.testing with parameters of type Id | |
boolean |
HelloWorldApp.enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id key,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
Invoked on intermediate nodes in routing path. |
rice.pastry.IdRange |
IdRangeUnit.createIdRangeStartingWith(rice.pastry.Id ccw)
|
rice.pastry.IdRange |
IdRangeUnit.createIdRangeEndingIn(rice.pastry.Id cw)
|
boolean |
Ping.enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id from,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
|
boolean |
PingClient.enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id from,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
|
void |
RegrTestApp.deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
|
Uses of Id in rice.rm |
Methods in rice.rm with parameters of type Id | |
void |
RM.registerKey(rice.pastry.Id key)
Called by client(RMClient) to notify the RM substrate of the presence of a key corresponding to a object that was 'recently' inserted at itself. |
void |
RMImpl.deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
Called by pastry when a message arrives for this application. |
void |
RMImpl.registerKey(rice.pastry.Id key)
Called by client(RMClient) to notify the RM substrate of the presence of a key corresponding to a object that was 'recently' inserted at itself. |
Uses of Id in rice.rm.messaging |
Methods in rice.rm.messaging that return Id | |
rice.pastry.Id |
RMMessage.KEEntry.getHash()
|
Constructors in rice.rm.messaging with parameters of type Id | |
RMMessage.KEEntry(rice.pastry.IdRange _reqRange,
rice.pastry.IdRange _range,
int _numKeys,
boolean _hashEnabled,
rice.pastry.Id _hash,
rice.pastry.IdSet _keySet)
|
Uses of Id in rice.rm.testing |
Methods in rice.rm.testing that return Id | |
rice.pastry.Id |
DirectRMRegrTest.generateTopicId(java.lang.String topicName)
|
rice.pastry.Id |
DistRMRegrTestApp.generateTopicId(java.lang.String topicName)
|
rice.pastry.Id |
HeartbeatMsg.getObjectKey()
Gets the objectKey of the object. |
rice.pastry.Id |
InsertMsg.getObjectKey()
Gets the objectKey of the object. |
rice.pastry.Id |
InsertResponseMsg.getObjectKey()
|
rice.pastry.Id |
RefreshMsg.getObjectKey()
Gets the objectKey of the object. |
rice.pastry.Id |
ReplicateMsg.getObjectKey()
Gets the objectKey of the object. |
rice.pastry.Id |
ReplicateResponseMsg.getObjectKey()
|
rice.pastry.Id |
ReplicateTimeoutMsg.getObjectKey()
|
Methods in rice.rm.testing with parameters of type Id | |
RMRegrTestApp.ReplicateEntry |
RMRegrTestApp.getPendingObject(rice.pastry.Id key)
|
void |
RMRegrTestApp.removePendingObject(rice.pastry.Id key)
|
boolean |
RMRegrTestApp.replicate(rice.pastry.Id objectKey)
Called by the application when it needs to replicate an object into k nodes closest to the object key. |
void |
RMRegrTestApp.replicateSuccess(rice.pastry.Id key,
boolean status)
|
void |
RMRegrTestApp.remove(rice.pastry.Id objectKey)
|
void |
RMRegrTestApp.store(rice.pastry.Id key,
java.lang.Object object)
|
void |
RMRegrTestApp.deliver(rice.pastry.Id key,
rice.pastry.messaging.Message msg)
|
void |
RMRegrTestApp.heartbeat(rice.pastry.Id objectKey)
|
void |
RMRegrTestApp.refresh(rice.pastry.Id objectKey)
|
Constructors in rice.rm.testing with parameters of type Id | |
HeartbeatMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _objectKey,
rice.pastry.security.Credentials authorCred)
Constructor : Builds a new Heartbeat Message |
|
InsertMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _objectKey,
java.lang.Object _content,
rice.pastry.security.Credentials authorCred)
|
|
InsertResponseMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _key,
rice.pastry.security.Credentials authorCred)
Constructor : Builds a new RM Message |
|
RefreshMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _objectKey,
rice.pastry.security.Credentials authorCred)
|
|
ReplicateMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _objectKey,
rice.pastry.security.Credentials authorCred)
|
|
ReplicateResponseMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _key,
rice.pastry.NodeSet _replicaSet,
rice.pastry.security.Credentials authorCred)
Constructor : Builds a new RM Message |
|
ReplicateTimeoutMsg(rice.pastry.NodeHandle source,
rice.pastry.messaging.Address address,
rice.pastry.Id _objectKey,
rice.pastry.security.Credentials authorCred)
Constructor |
Uses of Id in rice.scribe |
Methods in rice.scribe with parameters of type Id | |
boolean |
Scribe.enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id target,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
Called by pastry when a message is enroute and is passing through this node. |
|
Rice Pastry API | ||||||||||
PREV NEXT | FRAMES NO FRAMES |