From: Sven Kaffille <sven.kaffille@gm...> - 2009-04-04 11:33:42
-----BEGIN PGP SIGNED MESSAGE-----
Larry Homes schrieb:
> When a request for date is made on the network, eventually the
> Entry.getValue() method is called. Is there any way for this method to
> get access to its owning node's url?
> Thanks for any help
What do you mean by owning node. The peer that inserted the data or the peer
that is responsible to store it?
In both cases we thougt that it is not meaningful or necessary for open chord
to provide this information in an entry. In the last case, for example, the
responsibility may change while the data is send to the requesting peer.
To determie the responsible peer you can call findSuccessor if you want.
If you have an application on top of open chord that requires to know which
peer has put the data into the DHT (if you mean this by owner) you can create
your own data structure (a custom Serializable class) that is capable to store
and provide this information.
It was planned to make routing information available to applications (\ie a
suitable findSuccessor method or methods to determine predecessor and
successor) on top of open chord, but currently we provide only access to data
in the dht.
If you want to extend open chord in that direction, you are welcome! ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
-----END PGP SIGNATURE-----