A B C D E F G H I J L M N O P R S T U X

A

accessItem(int, char) - Method in class peersim.pastry.RoutingTable
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
add() - Method in class peersim.pastry.Turbulence
 

B

B - Static variable in class peersim.pastry.MSPastryCommonConfig
 
BASE - Static variable in class peersim.pastry.MSPastryCommonConfig
 
BIN - Static variable in class peersim.pastry.LeafSet
shortcut to base-representation specifier
BITS - Static variable in class peersim.pastry.MSPastryCommonConfig
 
body - Variable in class peersim.pastry.Message
This Object contains the body of the message, no matter what it contains

C

charToIndex(char) - Static method in class peersim.pastry.Util
convert a cipher in the equivalent int value '0'-->0, ...
clone() - Method in class peersim.pastry.LeafSet
produces an exact deep clone of this Object, everything is copied
clone() - Method in class peersim.pastry.MSPastryProtocol
Replicate this object by returning an identical copy.
clone() - Method in class peersim.pastry.RoutingTable
 
cols - Variable in class peersim.pastry.RoutingTable
 
containsNodeId(BigInteger) - Method in class peersim.pastry.LeafSet
returns true iff whe specified node is found in the table
copy() - Method in class peersim.pastry.Message
 
copyRowFrom(RoutingTable, int) - Method in class peersim.pastry.RoutingTable
 
CustomDistribution - Class in peersim.pastry
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).
CustomDistribution(String) - Constructor for class peersim.pastry.CustomDistribution
 

D

DEBUG - Static variable in class peersim.pastry.MSPastryCommonConfig
 
DEC - Static variable in class peersim.pastry.LeafSet
shortcut to base-representation specifier
dest - Variable in class peersim.pastry.Message
Recipient address of the message
DIGITS - Static variable in class peersim.pastry.MSPastryCommonConfig
 
DIGITS - Static variable in class peersim.pastry.Util
 
distance(BigInteger, BigInteger) - Static method in class peersim.pastry.Util
return the distance between two number, that is |a-b|.

E

EMPTY - Static variable in class peersim.pastry.RoutingTable
Use this to indicates a entry in the table is not filled
encompass(BigInteger) - Method in class peersim.pastry.LeafSet
returns true if key is between the leftmost and the rightmost.
execute() - Method in class peersim.pastry.CustomDistribution
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)
execute() - Method in class peersim.pastry.MSPastryObserver
print the statistical snapshot of the current situation
execute() - Method in class peersim.pastry.StateBuilder
 
execute() - Method in class peersim.pastry.TrafficGenerator
every call of this control generates and send a random lookup message
execute() - Method in class peersim.pastry.Turbulence
 

F

fillLevel(int, int, int, int) - Method in class peersim.pastry.StateBuilder
 

G

generate() - Method in class peersim.pastry.UniformRandomGenerator
Returns a unique 128-bit random number.
get(int) - Method in class peersim.pastry.MSPastryProtocol
shortcut for getting the MSPastry level of the node with index "i" in the network
get(int, int) - Method in class peersim.pastry.RoutingTable
 
get(int) - Method in class peersim.pastry.StateBuilder
 
getTr(int) - Method in class peersim.pastry.MSPastryProtocol
shortcut for getting the Transport level of the node with index "i" in the network
getTr(int) - Method in class peersim.pastry.StateBuilder
 

H

hasDigitAt(BigInteger, int, char) - Static method in class peersim.pastry.Util
Given b, normalize it and check if char c is at specified position
HEX - Static variable in class peersim.pastry.LeafSet
shortcut to base-representation specifier
hopStore - Static variable in class peersim.pastry.MSPastryObserver
keep statistics of the number of hops of every message delivered.
hsize - Variable in class peersim.pastry.LeafSet
size of both left and right part of the leaf set.

I

id - Variable in class peersim.pastry.Message
ID of the message.
info() - Static method in class peersim.pastry.MSPastryCommonConfig
short information about current mspastry configuration
inits - Variable in class peersim.pastry.Turbulence
node initializers to apply on the newly added nodes

J

join() - Method in class peersim.pastry.MSPastryProtocol
Given that this node was correctly initialized (e.g.

L

L - Static variable in class peersim.pastry.MSPastryCommonConfig
 
LeafSet - Class in peersim.pastry
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
LeafSet(long, int) - Constructor for class peersim.pastry.LeafSet
shortcut constructor to use integers instead of BigIntegers.
LeafSet(BigInteger, int) - Constructor for class peersim.pastry.LeafSet
Creates a new Leaf Set by pivoting it with the specified nodeId, and with the desired size of the vector.
leafSet - Variable in class peersim.pastry.MSPastryProtocol
leaf set of this pastry node
listAllNodes() - Method in class peersim.pastry.LeafSet
Outputs an (ordered, from min to max) array of all nodes in the leaf set.

M

makeJoinRequest(Object) - Static method in class peersim.pastry.Message
Encapsulates the creation of a join request
makeLookUp(Object) - Static method in class peersim.pastry.Message
Encapsulates the creation of a join request
max(int, int) - Static method in class peersim.pastry.Util
max between a and b
MAX_TRACK - Static variable in class peersim.pastry.Message
Tha trace vector has this limit size
Message - Class in peersim.pastry
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
Message(Object) - Constructor for class peersim.pastry.Message
Creates a lookup message with the specified body
Message() - Constructor for class peersim.pastry.Message
Creates an empty message by using default values (message type = MSG_LOOKUP and new String("") value for the body of the message)
Message(int, Object) - Constructor for class peersim.pastry.Message
Creates an empty message by using default values (message messageType = MSG_LOOKUP and null value for the body of the message)
Message.BodyJoinRequestReply - Class in peersim.pastry
 
Message.BodyJoinRequestReply() - Constructor for class peersim.pastry.Message.BodyJoinRequestReply
Creates an empty Body For a message of type MSG_JOINREQUEST or type MSG_JOINREPLY
messageType - Variable in class peersim.pastry.Message
Identify the type of this message
messageTypetoString() - Method in class peersim.pastry.Message
 
min(int, int) - Static method in class peersim.pastry.Util
min between a and b
MSG_JOINREPLY - Static variable in class peersim.pastry.Message
Message Type
MSG_JOINREQUEST - Static variable in class peersim.pastry.Message
Message Type
MSG_LOOKUP - Static variable in class peersim.pastry.Message
Message Type
MSG_LSPROBEREPLY - Static variable in class peersim.pastry.Message
Message Type
MSG_LSPROBEREQUEST - Static variable in class peersim.pastry.Message
Message Type
MSG_SERVICEPOLL - Static variable in class peersim.pastry.Message
Internal Message: polling cleaner
MSPastryCommonConfig - Class in peersim.pastry
Fixed Parameters of a pastry network.
MSPastryCommonConfig() - Constructor for class peersim.pastry.MSPastryCommonConfig
 
MSPastryObserver - Class in peersim.pastry
 
MSPastryObserver(String) - Constructor for class peersim.pastry.MSPastryObserver
 
MSPastryProtocol - Class in peersim.pastry
 
MSPastryProtocol(String) - Constructor for class peersim.pastry.MSPastryProtocol
Used only by the initializer when creating the prototype Every other instance call CLONE to create the new object.
MSPastryProtocol.Listener - Interface in peersim.pastry
Event Handler container for managing the receiving of a message

N

nearer(BigInteger, BigInteger, BigInteger) - Static method in class peersim.pastry.Util
given a point (center), returns true if the second parameter (near) has less distance from the center respect with the 3rd point (far)
NIB - Static variable in class peersim.pastry.LeafSet
shortcut to base-representation specifier
nodeId - Variable in class peersim.pastry.LeafSet
pivot nodeId, this is needed in order to know how to organize adding/positioning/searching of the entries of the leaf set
nodeId - Variable in class peersim.pastry.MSPastryProtocol
nodeId of this pastry node
nrHops - Variable in class peersim.pastry.Message
Available to conunt the number of hops the message did.

O

o(Object) - Static method in class peersim.pastry.StateBuilder
 

P

peersim.pastry - package peersim.pastry
 
pow2(int) - Static method in class peersim.pastry.Util
2^i
prefixLen(BigInteger, BigInteger) - Static method in class peersim.pastry.Util
Given two numbers, returns the length of the common prefix, i.e.
processEvent(Node, int, Object) - Method in class peersim.pastry.MSPastryProtocol
manage the peersim receiving of the events
push(long) - Method in class peersim.pastry.LeafSet
shortcut for push(new BigInteger(""+newNode));
push(BigInteger) - Method in class peersim.pastry.LeafSet
push into the leafset the specified node, by according the properties specified by the mspastry protocol
put0(BigInteger) - Static method in class peersim.pastry.Util
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

R

receive(Message) - Method in interface peersim.pastry.MSPastryProtocol.Listener
This method is called every time a message is received
receiveRoute(Message) - Method in class peersim.pastry.MSPastryProtocol
see MSPastry protocol "ReceiveRoute" primitive
rem() - Method in class peersim.pastry.Turbulence
 
removeNodeId(BigInteger) - Method in class peersim.pastry.LeafSet
permanently removes the specified NodeId from this Leaf Set.
removeNodeId(BigInteger) - Method in class peersim.pastry.RoutingTable
Given a non-null Node Id, it will be removed from the table.
routingTable - Variable in class peersim.pastry.MSPastryProtocol
routing table of this pastry node
RoutingTable - Class in peersim.pastry
 
RoutingTable(int, int) - Constructor for class peersim.pastry.RoutingTable
instanciates a new empty routing table with the specified size
rows - Variable in class peersim.pastry.RoutingTable
 

S

send(BigInteger, Object) - Method in class peersim.pastry.MSPastryProtocol
This primitive provide the sending of the data to dest, by encapsulating it into a LOOKUP Message
set(int, int, BigInteger) - Method in class peersim.pastry.RoutingTable
 
setListener(MSPastryProtocol.Listener) - Method in class peersim.pastry.MSPastryProtocol
allows to change/clear the listener
setNodeId(BigInteger) - Method in class peersim.pastry.MSPastryProtocol
set the current NodeId
sortNet() - Method in class peersim.pastry.Turbulence
 
src - Variable in class peersim.pastry.Message
Source address of the message: has to be filled ad application level
startsWith(BigInteger, char) - Static method in class peersim.pastry.Util
return true if b (normalized) starts with c
StateBuilder - Class in peersim.pastry
Title: MSPASTRY
StateBuilder(String) - Constructor for class peersim.pastry.StateBuilder
 

T

table - Variable in class peersim.pastry.RoutingTable
all these methods are public in order to provide the fastest possible access
timestamp - Variable in class peersim.pastry.Message
Available to contains the timestamp of the (creation date of the) message
timeStore - Static variable in class peersim.pastry.MSPastryObserver
keep statistics of the time every every message needed for delivery.
toString() - Method in class peersim.pastry.LeafSet
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.
toString() - Method in class peersim.pastry.Message
 
toString(BigInteger) - Method in class peersim.pastry.RoutingTable
 
toString() - Method in class peersim.pastry.RoutingTable
print a string representation of the table
traceToString(boolean) - Method in class peersim.pastry.Message
returns a ";" separated list of the tracks vector
traceToString() - Method in class peersim.pastry.Message
returns a ";" separated list of the tracks vector
tracks - Variable in class peersim.pastry.Message
Available to contains the path of the message
trackSize - Variable in class peersim.pastry.Message
current size of the tracks vector
TrafficGenerator - Class in peersim.pastry
This "test" control generates random traffic between random nodes (source and destination).
TrafficGenerator(String) - Constructor for class peersim.pastry.TrafficGenerator
 
truncateNodeId(BigInteger) - Static method in class peersim.pastry.RoutingTable
given a NodeId value, it returns an hexadecimal representation and truncate it on the 4th cipher, for instance truncateNodeId(new BigInteger(0xABCDEF0123)) returns "abcd-".
Turbulence - Class in peersim.pastry
Turbulcen class is only for test/statistical purpose.
Turbulence(String) - Constructor for class peersim.pastry.Turbulence
 

U

UniformRandomGenerator - Class in peersim.pastry
This initializator assign to the Nodes a nodeId (stored in the protocol MSPastryProtocol) by using this 128-bit (32 byte) random generator.
UniformRandomGenerator(int, Random) - Constructor for class peersim.pastry.UniformRandomGenerator
initialized this random generator with the specified random seeder and the number of desider bits to generate
UniformRandomGenerator(int, long) - Constructor for class peersim.pastry.UniformRandomGenerator
instanciate the random generator with the given seed
Util - Class in peersim.pastry
Some utility and mathematical function to work with numbers and strings.
Util() - Constructor for class peersim.pastry.Util
 

X

x(Object) - Static method in class peersim.pastry.StateBuilder
 

A B C D E F G H I J L M N O P R S T U X