A C D E H I J L M O P R S W

A

add(ChordLocation) - Method in class MyChord
Add adds a node to the list.
addr() - Method in class ChordLocation
This selector returns the IP address of the node.

C

change - Variable in class MyChord
 
ChordConst - class ChordConst.
Constants and Class Methods for basic Chord Implementation.
ChordConst() - Constructor for class ChordConst
 
ChordLocation - class ChordLocation.
This is the largest change from the documentation.
ChordLocationTest - class ChordLocationTest.
This is a simple test to check out the Location implementation.
ChordLocationTest() - Constructor for class ChordLocationTest
 
ChordTest - class ChordTest.
This is a simple test that sets up a four node ring and does some small tests of the functionality.
ChordTest.TestRun - class ChordTest.TestRun.
 
ChordTest() - Constructor for class ChordTest
 
clientIP - Variable in class MyChord.MasterHandler
 
clientIP - Variable in class MyChord.StandardHandler
 
clientSock - Variable in class MyChord.MasterHandler
 
clientSock - Variable in class MyChord.StandardHandler
 
closing - Variable in class MyChord
 
CMD_DOLOOKUP - Static variable in class ChordConst
 
CMD_JOIN - Static variable in class ChordConst
 
CMD_LEAVE - Static variable in class ChordConst
 
CMD_LOOKUP - Static variable in class ChordConst
 
CMD_NOK - Static variable in class ChordConst
 
CMD_OK - Static variable in class ChordConst
 

D

debug - Variable in class MyChord
 
delete(ChordLocation) - Method in class MyChord
Deletes a node from the list when it leaves the ring.

E

equals(ChordLocation) - Method in class ChordLocation
An equality test for locations.

H

here - Variable in class MyChord
 

I

id() - Method in class ChordLocation
This selector returns the value of the SHA key for the node.
is - Variable in class MyChord.MasterHandler
 
is - Variable in class MyChord.StandardHandler
 

J

join(ChordLocation, MyChange) - Method in class MyStartChord
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.
joined(ChordLocation) - Method in class MyChange
Joined is called when a node joins the ring.

L

leave() - Method in class MyChord
We call this when we want to leave the chord ring.
left(ChordLocation, ChordLocation, ChordLocation) - Method in class MyChange
Left is executed on a server that is leaving the ring.
lessThan(byte[]) - Method in class ChordLocation
Compare the key of a location against a given key.
lessThan(ChordLocation) - Method in class ChordLocation
Compare the keys of two locations
log(String) - Method in class MyChord
Shorthand for a print statement.
lookKey(byte[]) - Method in class MyChord
LookKey looks up a key in the list of locations.
lookUp(byte[]) - Method in class MyChord
This looks up a key in the Chord ring.
lookup(byte[], ChordLocation) - Method in class MyChange
Lookup is called in a node that has been looked up and in its predecessor and successor nodes.

M

main(String[]) - Static method in class ChordLocationTest
 
main(String[]) - Static method in class ChordTest
 
master - Variable in class MyChord
 
MyChange - class MyChange.
This is a dummy class that you will need to reimplement in order to implement the filesystem.
MyChange() - Constructor for class MyChange
 
MyChord - class MyChord.
Basic Chord implementation.
MyChord.MasterHandler - class MyChord.MasterHandler.
Inner class to handle one interaction for the master node.
MyChord.MasterHandler(MyChord, Socket, String) - Constructor for class MyChord.MasterHandler
 
MyChord.StandardHandler - class MyChord.StandardHandler.
Inner class to handle one interaction for the standard node.
MyChord.StandardHandler(MyChord, Socket, String) - Constructor for class MyChord.StandardHandler
 
MyStartChord - class MyStartChord.
This class starts up a new node in the chord ring, the interface has been changed slightly to make more uniform use of Locations.

O

os - Variable in class MyChord.MasterHandler
 
os - Variable in class MyChord.StandardHandler
 

P

portNo() - Method in class ChordLocation
This selector returns the port number of the location.
printNodes() - Method in class MyChord
Used for debugging, this prints an ordered list of nodes.

R

run() - Method in class ChordTest.TestRun
 
run() - Method in class MyChord.MasterHandler
Each MasterHandler is a Thread, so we need to redefine the run method to handle a Message.
run() - Method in class MyChord.StandardHandler
Each StandardHandler is a Thread, so we need to redefine the run method to handle a Message.
runServer() - Method in class MyChord
This is the method that kicks off a server.

S

SEPARATOR - Static variable in class ChordConst
 
servSock - Variable in class MyChord
 

W

writeChordLocation(DataOutputStream) - Method in class ChordLocation
This method writes a Location in a form that allows it to be read by the constructor above.

A C D E H I J L M O P R S W