|
${header} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface defining the DHT Service The fundamental operations of the DHT are to define an indexing space and provide a mechanism to locate and route to an identifier. There are currently two types of DHT implemented: A ring-based algorithm (inspired by MIT's CHORD) A mesh-based algorithm (inspired by the Content-Addressable Network)
| Field Summary |
| Fields inherited from interface net.jxta.platform.Module |
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Method Summary | |
void |
bootstrap(java.lang.String pid)
Start the discovery for bootstrap |
void |
get(java.lang.String key)
Get an object from the Hashtable |
java.math.BigInteger |
getNodeID(java.lang.String id)
Hashes the JXTA peer id into an overlay node id |
java.math.BigInteger |
getTopologySize()
Returns the size of the topoloy as an Integer In the case of a ring, the size of the ring, In the case of a mesh, the width ot th mesh |
void |
join(java.lang.String nodeID)
JOIN Protocol |
void |
lookup(java.math.BigInteger target,
int owner,
int mode)
Lookup the node handling an identifier |
void |
put(java.lang.String key,
java.lang.String value)
Put an Object in the Hashtable |
void |
setTopologySize(int size)
Sets the size of the topology |
| Methods inherited from interface net.jxta.service.Service |
getImplAdvertisement, getInterface |
| Methods inherited from interface net.jxta.platform.Module |
init, startApp, stopApp |
| Method Detail |
public void setTopologySize(int size)
public java.math.BigInteger getTopologySize()
public java.math.BigInteger getNodeID(java.lang.String id)
public void bootstrap(java.lang.String pid)
public void join(java.lang.String nodeID)
public void lookup(java.math.BigInteger target,
int owner,
int mode)
public void put(java.lang.String key,
java.lang.String value)
public void get(java.lang.String key)
|
${header} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||