Call of "nodeLookup" instead of "valueLookup" with standard file sharing configuration

16 views
Skip to first unread message

Yasin Yazgan

unread,
Nov 21, 2013, 11:58:16 AM11/21/13
to peerfac...@googlegroups.com
Hi,

when using the standard "FileSharing.xml" configuration the method "nodeLookup" of each node is called instead of the method "valueLookup".
The reason is "all 180m FileSharingApplication:lookupResourceFromSetPeriodically files 10m" in "FileSharing.dat" which calls "downloadResource" in "DHTHandler.java" and "downloadResource" calls "nodeLookup".
Is this desired? I think after initiating store RPCs with "all 120m-180m FileSharingApplication:publishResourcesFromSet files 100" a "valueLookup" should be initiated and not a node lookup.


Matthias Feldotto

unread,
Nov 21, 2013, 1:45:15 PM11/21/13
to peerfac...@googlegroups.com
Hey,

as you correctly state, the DHT layer offers two methods: nodeLookup and valueLookup. While valueLookup returns a saved value, etc. (depends on the implementation of the DHT storage), nodeLookup returns the responsible node for a key.

In the file sharing application, we only want to get the responsible node for a key. In the second step we use a content distribution layer to get the saved content from the responsible node. Therefore, the nodeLookup method ist used. Of course, you can imagine an implementation where the value is used for storage, but in this application we have chosen the described way.

Regards,
Matthias
Reply all
Reply to author
Forward
0 new messages