Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ubermq.chord
Interface ChordNodeProvider  view ChordNodeProvider download ChordNodeProvider.java

All Superinterfaces:
ChordNode

public interface ChordNodeProvider
extends ChordNode

Additional operations that a chord node must provide in order to advertise its services to the infrastructure.


Method Summary
 void fixFingers()
          Verifies and potentially corrects a random entry in the finger table to be the optimal finger in the chord infrastructure.
 java.net.URI getServiceURI()
          Returns the URI that clients should connect to for communication with this node.
 void stabilize()
          Stabilizes this node by verifying the immediate successor node is correct.
 
Methods inherited from interface com.ubermq.chord.ChordNode
close, closestPrecedingFinger, fingers, identifier, join, leave, notify, notifyGoingAway, predecessor, query, store, successor, toHtml
 

Method Detail

getServiceURI

public java.net.URI getServiceURI()
Returns the URI that clients should connect to for communication with this node.


stabilize

public void stabilize()
Stabilizes this node by verifying the immediate successor node is correct. We also notify the successor about ourselves so it knows that we are the correct predecessor.

This method should be executed periodically to ensure correctness.


fixFingers

public void fixFingers()
Verifies and potentially corrects a random entry in the finger table to be the optimal finger in the chord infrastructure. The optimal finger can change as nodes join and leave the infrastructure.