Provide direct access to the item of the MSPastry routing table, by
selecting the associated entry o fthe table with the given prefix
length and the given next cipher
This control initializes the whole network (that was already created by peersim) by assigning a
unique NodeId randomly generated, to every node (it does nothing else).
Scan over the nodes in the network and assign a randomly generated NodeId in the space
0..2^BITS, where BITS is a parameter from the pastry protocol (usually 128)
LeafSet class encapsulate functionalities of a Leaf Set table in a Pastry Node, allowing
automatic "intellingent" adding of the entries, and facilitating extraction of information
Message class provide all functionalities to magage the various messages, principally LOOKUP
messages (messages from application level sender destinated to another application level).
Types Of messages:
(application messages)
- MSG_LOOKUP: indicates that the body Object containes information to application level of the
recipient
(service internal protocol messages)
- MSG_JOINREQUEST: message containing a join request of a node, the message is passed between
many pastry nodes accorting to the protocol
- MSG_JOINREPLY: according to protocol, the body transport information related to a join reply message
- MSG_LSPROBEREQUEST:according to protocol, the body transport information related to a probe request message
- MSG_LSPROBEREPLY: not used in the current implementation
- MSG_SERVICEPOLL: internal message used to provide cyclic cleaning service of dead nodes
The body for message types MSG_JOINREQUEST and MSG_JOINREPLY if defined by the class
Message.BodyJoinRequestReply
convert a BigInteger into a String, by considering the current BASE, and by leading all
needed non-significative zeroes in order to reach the canonical length of a nodeid
Outputs a representation of this leafset in the form: [L3;L2;L1;L0]pivot[R0;R1;R2;R3]
each entry is represented only partially, to allow a shorter
represantation (i.e.
given a NodeId value, it returns an hexadecimal representation and truncate it
on the 4th cipher, for instance truncateNodeId(new BigInteger(0xABCDEF0123)) returns "abcd-".