[p2p-hackers] JDHT: Java Distributed Hash Table

Aaron Harwood aharwood at cs.mu.OZ.AU
Fri Sep 23 04:03:10 UTC 2005


Hi Ali and others,

JDHT looks nice. We have a similar development called OPeN in the C++  
world.

Some of the nice things about the OPeN architecture is that the  
service is distinct from the protocol.
Thus we can mix and match different services with different protocols.

In the OPeN architecture, using C++, we have this kind of interface:

char *key,*data;
OpenManager open_manager;
open_manager.OpenInitialize(argc, argv, env );
DataService *data_service = (DataService*) open_manager.GetService 
("DataService", "DefaultDHT");

.
.
.

data_service->Put(key, data)

.
.
.

cout << data_service->Get(key)

.
.
.

data_service->Delete(key);

A second node connects to the first node when the service is  
initialized in the second node. Actually IP/port of
existing peer is given in a configuration file / environment  
variable / command line / application UI, etc.

--Aaron
http://p2p.cs.mu.oz.au/

On 12/09/2005, at 8:03 AM, Ali Ghodsi wrote:

>
> 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
>
> _______________________________________________
> p2p-hackers mailing list
> p2p-hackers at zgp.org
> http://zgp.org/mailman/listinfo/p2p-hackers
> _______________________________________________
> Here is a web page listing P2P Conferences:
> http://www.neurogrid.net/twiki/bin/view/Main/PeerToPeerConferences
>




More information about the P2p-hackers mailing list