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.
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.