Rice Pastry API

Uses of Class
rice.pastry.Id

Packages that use Id
rice.pastry   
rice.pastry.client   
rice.pastry.direct   
rice.pastry.dist   
rice.pastry.leafset   
rice.pastry.messaging   
rice.pastry.routing   
rice.pastry.socket   
rice.pastry.socket.messaging   
rice.pastry.standard   
rice.pastry.testing   
 

Uses of Id in rice.pastry
 

Fields in rice.pastry declared as Id
protected  Id PastryNode.myNodeId
          DESCRIBE THE FIELD
 

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.makeRandomId(RandomSource rng)
          DESCRIBE THE METHOD
static Id Id.build(int[] material)
          Constructor.
static Id Id.build(InputBuffer buf)
          Id (Version 0) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 160 Bit + + + + + + + + + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
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
abstract  Id NodeHandle.getNodeId()
          Gets the nodeId of this Pastry node.
 Id NodeIdFactory.generateNodeId()
          Generates a nodeId.
 Id PastryNode.getNodeId()
          Gets the NodeId attribute of the PastryNode object
 

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.distance(Id nid, Id.Distance d)
          DESCRIBE THE METHOD
 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
 NodeHandle NodeSet.get(Id nid)
          Finds the NodeHandle associated with a NodeId.
 int NodeSet.getIndex(Id nid)
          Gets the index of the element with the given node id.
 NodeHandle NodeSet.remove(Id nid)
          Removes a node id and its handle from the set.
 NodeHandle NodeSetI.get(Id nid)
          Finds the NodeHandle associated with the NodeId.
 int NodeSetI.getIndex(Id nid)
          Gets the index of the element with the given node id.
 boolean PastryNode.isClosest(Id key)
          Called by the layered Pastry application to check if the local pastry node is the one that is currently closest to the object key id.
abstract  PastryNode PastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId)
          Call this to construct a new node of the type chosen by the factory, with the given nodeId.
 

Constructors in rice.pastry with parameters of type Id
IdRange(Id ccw, Id cw)
          Constructor.
PastryNode(Id id, Environment e)
          Constructor, with NodeId.
 

Uses of Id in rice.pastry.client
 

Methods in rice.pastry.client that return Id
 Id PastryAppl.getNodeId()
          Gets the node id associated with this 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.
 boolean PastryAppl.isClosest(Id key)
          Called by the layered Pastry application to check if the local pastry node is the one that is currently closest to the object key id.
 void PastryAppl.routeMsg(Id key, Message msg, 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, NodeHandle nextHop, SendOptions opt)
          Called by pastry when a message is enroute and is passing through this node.
 

Uses of Id in rice.pastry.direct
 

Methods in rice.pastry.direct that return Id
 Id DirectNodeHandle.getNodeId()
          Gets the NodeId attribute of the DirectNodeHandle object
 

Methods in rice.pastry.direct with parameters of type Id
 PastryNode DirectPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId)
          Manufacture a new Pastry node.
 

Constructors in rice.pastry.direct with parameters of type Id
DirectPastryNode(Id id, NetworkSimulator sim, Environment e, NodeRecord nr)
          Constructor for DirectPastryNode.
 

Uses of Id in rice.pastry.dist
 

Fields in rice.pastry.dist declared as Id
protected  Id DistNodeHandle.nodeId
          DESCRIBE THE FIELD
 

Methods in rice.pastry.dist that return Id
 Id DistNodeHandle.getNodeId()
          Gets the nodeId of this Pastry node.
 

Methods in rice.pastry.dist with parameters of type Id
abstract  PastryNode DistPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId)
          Generates a new pastry node with the specified NodeId using the bootstrap bootstrap.
abstract  PastryNode DistPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId, java.net.InetSocketAddress proxy)
          Generates a new pastry node with the specified NodeId using the bootstrap bootstrap.
 

Constructors in rice.pastry.dist with parameters of type Id
DistNodeHandle(Id nodeId, java.net.InetSocketAddress address)
          Constructor
DistPastryNode(Id id, Environment e)
          Constructor, with NodeId.
 

Uses of Id in rice.pastry.leafset
 

Methods in rice.pastry.leafset with parameters of type Id
 boolean LeafSet.member(Id nid)
          Verifies if the set contains this particular 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
 NodeHandle SimilarSet.get(Id nid)
          Finds the NodeHandle associated with the Id.
 int SimilarSet.getIndex(Id nid)
          Gets the index of the element with the given node id.
 boolean SimilarSet.member(Id nid)
           
 NodeHandle SimilarSet.remove(Id nid)
          Removes a node id and its handle from the set.
 int SimilarSet.mostSimilar(Id nid)
          Impl that doesn't produce garbage Numerically closest node to a given a node.
 

Uses of Id in rice.pastry.messaging
 

Methods in rice.pastry.messaging that return Id
 Id Message.getSenderId()
          Get sender Id.
 

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
 NodeHandle RouteSet.get(Id nid)
          Returns the node handle with the matching node id or null if none exists.
 int RouteSet.getIndex(Id nid)
          Get the index of the node id.
 NodeHandle RouteSet.remove(Id nid)
          Removes a node from a set.
 boolean RouteSet.member(Id nid)
          Membership test.
 RouteSet RoutingTable.getBestEntry(Id key)
          Gets the set of handles that match at least one more digit of the key than the local Id.
 NodeHandle RoutingTable.get(Id nid)
          Gets the node handle associated with a given id.
 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)
          Constructor.
RouteMessage(Id target, Message msg, SendOptions opts)
          Constructor.
RouteMessage(Id target, Message msg, NodeHandle firstHop)
          Constructor.
RouteMessage(Id target, PRawMessage msg, NodeHandle firstHop, SendOptions opts)
          Constructor for RouteMessage.
RouteMessage(Id target, Message msg, NodeHandle firstHop, SendOptions opts)
          Constructor.
RouteMessage(Id target, int auxAddress, NodeHandle prev, InputBuffer buf, NodeHandleFactory nhf, PastryNode pn)
          Constructor for RouteMessage.
 

Uses of Id in rice.pastry.socket
 

Methods in rice.pastry.socket with parameters of type Id
 void SocketNodeHandle.setNodeId(Id nodeId)
          Sets the NodeId attribute of the SocketNodeHandle object
 PastryNode SocketPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId)
          Method which creates a Pastry node from the next port with a randomly generated NodeId.
 PastryNode SocketPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId, java.net.InetSocketAddress pAddress)
          Method which creates a Pastry node from the next port with a randomly generated NodeId.
 PastryNode SocketPastryNodeFactory.newNode(NodeHandle bootstrap, Id nodeId, java.net.InetSocketAddress pAddress, boolean throwException)
          DESCRIBE THE METHOD
 

Constructors in rice.pastry.socket with parameters of type Id
SocketNodeHandle(EpochInetSocketAddress address, Id nodeId)
          Constructor
SocketPastryNode(Id id, Environment e)
          Constructor
 

Uses of Id in rice.pastry.socket.messaging
 

Methods in rice.pastry.socket.messaging that return Id
 Id NodeIdResponseMessage.getNodeId()
          Returns the nodeId of the receiver.
 

Constructors in rice.pastry.socket.messaging with parameters of type Id
NodeIdResponseMessage(Id nid, long epoch)
          Constructor
 

Uses of Id in rice.pastry.standard
 

Methods in rice.pastry.standard that return Id
 Id CertifiedNodeIdFactory.generateNodeId()
          generate a nodeId
 Id IPNodeIdFactory.generateNodeId()
          generate a nodeId multiple invocations result in a deterministic series of randomized NodeIds, seeded by the IP address of the local host.
 Id RandomNodeIdFactory.generateNodeId()
          generate a nodeId
 

Methods in rice.pastry.standard with parameters of type Id
static void CertifiedNodeIdFactory.generateCertificate(Id id, java.io.OutputStream os, java.security.PrivateKey key)
          Method which generates a certificate given the nodeid, location, and private key
 

Uses of Id in rice.pastry.testing
 

Fields in rice.pastry.testing declared as Id
 Id PastryRegrTest.lastNode
          DESCRIBE THE FIELD
 

Methods in rice.pastry.testing that return Id
 Id IdRangeUnit.createIdWithPrefix(byte b)
          DESCRIBE THE METHOD
 Id LeafSetTest.TestNodeHandle.getNodeId()
          Gets the NodeId attribute of the TestNodeHandle object
 Id NodeIdUnit.createNodeId()
          DESCRIBE THE METHOD
 Id PingMessageNew.getSource()
          Gets the Source attribute of the PingMessageNew object
 

Methods in rice.pastry.testing with parameters of type Id
 boolean HelloWorldApp.enrouteMessage(Message msg, Id key, NodeHandle 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
 void Ping.sendPing(Id nid)
          DESCRIBE THE METHOD
 boolean Ping.enrouteMessage(Message msg, Id from, NodeHandle nextHop, SendOptions opt)
          DESCRIBE THE METHOD
 void PingClient.sendPing(Id nid)
          DESCRIBE THE METHOD
 void PingClient.sendTrace(Id nid)
          DESCRIBE THE METHOD
 boolean PingClient.enrouteMessage(Message msg, Id from, NodeHandle nextHop, SendOptions opt)
          DESCRIBE THE METHOD
 void RegrTestApp.sendMsg(Id nid)
          DESCRIBE THE METHOD
 void RegrTestApp.sendTrace(Id nid)
          DESCRIBE THE METHOD
 void RegrTestApp.deliver(Id key, Message msg)
          DESCRIBE THE METHOD
 

Constructors in rice.pastry.testing with parameters of type Id
LeafSetTest.TestNodeHandle(Id id)
          Constructor for TestNodeHandle.
PingMessageNew(int pingAddress, NodeHandle src, Id tgt)
          Constructor for PingMessageNew.
 


Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection