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)

This topic contains 2 replies, has 1 voice, and was last updated by  Same Diffr 5 years, 6 months ago.

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

    Same Diffr

    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

    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

    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