Where can the route method of Pastry be found?

Home Forums PeerfactSim Forum Where can the route method of Pastry be found?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #760
    Same Diffr
    Guest

    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

    #762
    Matthias Feldotto
    Guest

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed.