Class MyStartChord

java.lang.Object
  |
  +--MyStartChord

public class MyStartChord
extends java.lang.Object

This class starts up a new node in the chord ring, the interface has been changed slightly to make more uniform use of Locations. This class includes the join method that connects a new node into the chord ring.


Method Summary
 MyChord join(ChordLocation there, MyChange c)
          To join we need to know the location of an existing Chord node and we need to supply a MyChange object to provide the interface between this node and any system that is built on top of Chord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

join

public MyChord join(ChordLocation there,
                    MyChange c)
To join we need to know the location of an existing Chord node and we need to supply a MyChange object to provide the interface between this node and any system that is built on top of Chord. If the location of the Chord node we are joining is the same as the location of this node we are starting a new ring from scratch. If join is successful, it returns a new MyChord object, otherwise it returns null.