|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.multiring.MultiringNodeCollection
public class MultiringNodeCollection
| Field Summary | |
|---|---|
int |
BASE
The routing base for ring ids, in bytes |
protected java.util.Vector |
nodes
The list of nodes in the collection |
| Constructor Summary | |
|---|---|
MultiringNodeCollection(MultiringNode node,
int BASE)
Constructor |
|
| Method Summary | |
|---|---|
void |
addNode(MultiringNode node)
This method allows other nodes to be dynamically added to the node collection. |
protected void |
broadcastNewNode(MultiringNode node)
This method informs all of the existing nodes of the newly added node, and informs the newly added node of all of the existing nodes. |
protected int |
getLength(RingId a)
This method returns the length of the given ringId |
protected int |
getLengthOfSharedPrefix(RingId a,
RingId b)
This method returns the length of the shared prefix, in bytes, of the two provided ringIds by comparing the ring values. |
protected void |
route(RingId id,
Message message,
java.lang.String application)
This method returns the best next-hop to a given target, using ring hopping, if one exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int BASE
protected java.util.Vector nodes
| Constructor Detail |
|---|
public MultiringNodeCollection(MultiringNode node,
int BASE)
node - The node to base this node off of| Method Detail |
|---|
public void addNode(MultiringNode node)
node - The node to add to the collectionprotected void broadcastNewNode(MultiringNode node)
node - The node that is being added
protected void route(RingId id,
Message message,
java.lang.String application)
id - The target id of the messagemessage - The message to be senthint - A suggested hintprotected int getLength(RingId a)
a - The ring Id
protected int getLengthOfSharedPrefix(RingId a,
RingId b)
a - The first Idb - The second Id
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||