|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChordNode
This interface defines the main public interface of a Chord Node. When writing an application, this is the interface that you would be using.
| Method Summary | |
|---|---|
java.io.Serializable |
get(java.lang.String key)
The publicly available "get" method. |
ChordNode[] |
getFingerTable()
|
java.lang.String |
getIdentifier()
|
java.util.List<java.lang.String> |
getKeys()
|
java.math.BigInteger |
getNodeHash()
|
int |
getNumKeys()
|
ChordNode |
getPredecessor()
|
ChordNode |
getSuccessor()
|
boolean |
isReady()
Determines that the node in question has been set up and is ready to be used. |
void |
leave()
Called when the node wants to leave the Chord ring. |
ChordNode |
locate(java.lang.String key)
Find the Chord node responsible for the given key. |
boolean |
put(java.lang.String key,
java.io.Serializable data)
The publicly available "put" method. |
| Methods inherited from interface cs138.node.ManageableNode |
|---|
getMonitorInterface, initialize, ping |
| Method Detail |
|---|
ChordNode locate(java.lang.String key)
throws java.rmi.RemoteException
key - The key to locate.
java.rmi.RemoteException
java.io.Serializable get(java.lang.String key)
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean put(java.lang.String key,
java.io.Serializable data)
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isReady()
throws java.rmi.RemoteException
java.rmi.RemoteException
void leave()
throws java.rmi.RemoteException
java.rmi.RemoteException
ChordNode getSuccessor()
throws java.rmi.RemoteException
java.rmi.RemoteException
ChordNode getPredecessor()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<java.lang.String> getKeys()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getNumKeys()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getIdentifier()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.math.BigInteger getNodeHash()
throws java.rmi.RemoteException
java.rmi.RemoteException
ChordNode[] getFingerTable()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||