Hi Rebeca,
Unfortunately, there is no such function in our Java or Erlang APIs.
It would however go into the api_dht_raw erlang module. If you look into that,
you'll find that there is an unreliable_lookup/2 function which sends a
message to the dht_node responsible for a given key.
A simple message handler in the dht_node would be able to reply with the
information you may need. You could for example send a message like this:
Msg = {get_node_details, comm:this(), [node]}
and then receive it with:
receive {get_node_details_response, [Node]} -> Node
end
There remains the problem that the message may get lost and you'll never
receive an answer. If you use a timeout in that receive, be sure to tag the
message with comm:reply_as/3 or you may receive old messages.
From Java, you would then of course use the doRPC method in order to call the
one you export from erlang just like the rest of our API.
May I ask, what you need that functionality for? You can't really do anything
useful with this information through our APIs at the moment...
Regards,
Nico