[p2p-hackers] JDHT: Java Distributed Hash Table

Ali Ghodsi ali at sics.se
Sun Sep 11 22:03:33 UTC 2005


We have released a BETA version of JDHT (Java Distributed Hash Table) 
which aims at simplifying DHT usage by providing the same interface as 
the Java collections Map.

For more information visit http://dks.sics.se/jdht/
JDHT, uses DKS under the hood. Visit http://dks.sics.se for papers, 
implementation, and docs on DKS.


/**** Example: stand alone peer  ****/

DHT node1DHT = new JDHT();
node1DHT.put("myKey", "Hello World!");

/**** Example: second peer connecting to the first ****/

JDHT node2DHT = new JDHT( node1DHT.getReference() );
String helloString = (String) node2DHT.get("myKey");
System.out.println(helloString);

/******************************************/

Best regards,
Ali Ghodsi




More information about the P2p-hackers mailing list