Where can the route method of Pastry be found?

24 views
Skip to first unread message

Same Diffr

unread,
Dec 22, 2013, 6:50:20 AM12/22/13
to peerfac...@googlegroups.com
I manually need to call the route method of the Pastry API within my application code. I want to look up the implementation of that method in the simulator code, in order to study its functionality.

Is it correct, that the code I am searching for can be found within the PastryNode.java file at line 497 ( public void route(PastryKey key, Message msg, PastryContact hint) )?

Or is this not the route method as it is meant in the original Pastry paper ( route(msg,key) )? If so, where can I find the correct one?


Best regards

Simulator Version: 2013-10-17 PeerfactSim.KOM - Community Edition

Matthias Feldotto

unread,
Dec 27, 2013, 5:30:04 AM12/27/13
to peerfac...@googlegroups.com
Hi,

yes it is correct, the method at line 497 is the used routing method for Pastry. It implements the definition from the KBR interface. In addition, you can find a nodeLookup and a valueLookup methods (which are defined by the DHT interface) which you can also use for routing purposes.
Reply all
Reply to author
Forward
0 new messages