How to force the routing of a message to stop (in Pastry)

Home Forums PeerfactSim Forum How to force the routing of a message to stop (in Pastry)

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

    I am extending the PastryMessageHandler.java:

    If a certain message (newly implemented by me) is detected at a node, the node has to stop the forwarding/routing of that message.

    How would be the best way to prevent the further routing of a message?

    I can’t find appropriate code in the PastryMessageHandler.java, that would perform such a task.

    Best regards

    #749
    Matthias Feldotto
    Guest

    Hi,

    the appropriate code can be find at two different places depending on the method you use:

    DHT: the routing was started by nodeLookup() or valueLookup(): The forwarding is managed by the PastryMessageHandler. In lines 233ff you find the code for this.
    KBR: the routing was started by route(): The forwarding is managed by the common KBR components. They take use of implemented methods like route() or local_lookup(), but the real forwarding code is in the KBRMsgHandler class at lines 161ff.

    Depending on your concrete use case, you should modify or extend one of the described components. I hope I could help you.

    #750
    Same Diffr
    Guest

    You said “Depending on your concrete use case, you should modify or extend one of the described components”.

    How can I find out, if my application is using DHT or KBR? Can this be set with the help of the config file of my simulation or within my code?

    Thank you for your help, Matthias!

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

Comments are closed.