ePOST API

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.add(Id.Distance offset)
          Returns an Id corresponding to this Id plus a given distance
static Id Id.build()
          Constructor.
static Id Id.build(byte[] material)
          Constructor.
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(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.
 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.getCCW()
          gets the Id just counterclockwise from this
 Id IdRange.getCCW()
          get counterclockwise edge of range
 Id Id.getCW()
          gets the Id just clockwise from this
 Id IdRange.getCW()
          get clockwise edge of range
 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.
static Id Id.makeRandomId(java.util.Random rng)
          Creates a random Id.
static Id Id.makeRandomId(RandomSource rng)
           
 Id IdSet.maxMember()
          return the largest member id
 Id IdSet.minMember()
          return the smallest member id
protected static Id Id.resolve(java.util.WeakHashMap map, Id id)
          Method which performs the coalescing and interaction with the weak hash map
 

Methods in rice.pastry with parameters of type Id
 void IdSet.addMember(Id id)
          add a member
 boolean Id.clockwise(Id nid)
          Checks to see if the Id nid is clockwise or counterclockwise from this, on the ring.
 boolean IdRange.contains(Id key)
          test if a given key lies within this range
 Id.Distance Id.distance(Id nid)
          Returns the shorter numerical distance on the ring between a pair of Ids.
 Id.Distance Id.distance(Id nid, Id.Distance d)
           
 boolean Id.equals(Id nid)
          Equivalence relation for Ids.
 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.
 boolean Id.isBetween(Id ccw, Id cw)
          Checks if this Id is between two given ids ccw (inclusive) and cw (exclusive) on the circle
 boolean IdSet.isMember(Id id)
          test membership
 Id.Distance Id.longDistance(Id nid)
          Returns the longer numerical distance on the ring between a pair of Ids.
 void IdSet.removeMember(Id id)
          remove a member
protected static Id Id.resolve(java.util.WeakHashMap map, Id id)
          Method which performs the coalescing and interaction with the weak hash map
 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
abstract  void CommonAPIAppl.deliver(Id key, Message msg)
          Called by pastry when a message arrives for this application.
 boolean PastryAppl.enrouteMessage(Message msg, Id key, NodeHandle nextHop, SendOptions opt)
          Called by pastry when a message is enroute and is passing through this node.
 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.
 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.
 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.
 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.
 void CommonAPIAppl.route(Id key, Message msg, NodeHandle hint)
          This operation forwards a message towards the root of key.
 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).
 

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.
 int SimilarSet.mostSimilar(Id nid)
          Impl that doesn't produce garbage Numerically closest node to a given a node.
 NodeSet LeafSet.replicaSet(Id key, int max)
          compute an ordered set of nodes, in order of numerical closeness to a given key
 

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
 NodeSet RoutingTable.alternateRoutes(Id key, int max)
          Determines a set of alternate hops towards a given key.
 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.
 RouteSet RoutingTable.getBestEntry(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(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.
 

Uses of Id in rice.pastry.testing
 

Methods in rice.pastry.testing that return Id
 Id IdRangeUnit.createIdWithPrefix(byte b)
           
 

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


ePOST API

Copyright © 2001-2005 - Rice Pastry.