Takes a list of Interval's and returns a new list of Intervals guaranteeing
that subsumed Intervals have been removed and partially overlapping intervals
have been collapsed/merged.
This is a default class implementing placeholders for every callback that an application should implement
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
The callback is called at the responsible node when a route()
message reaches its destination and the message is not handled
at a lower abstraction layer.
The callback is called at the responsible node when a route()
message reaches its destination and the message is not handled
at a lower abstraction layer.
The callback is called at the responsible node when a route()
message reaches its destination and the message is not handled
at a lower abstraction layer.
The callback is called at the responsible node when a route()
message reaches its destination and the message is not handled
at a lower abstraction layer.
An important concept used by this interface is that the value
bound to a key using the DKS DHT should be treated as an array
of DKSObject, and that it shall be possible to modify this array
atomically.
Constructs a DKSNetAddress from a DKSNETURL string having the following format:
dksnet://[IP]:[PORT]
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
The scheme of the url can be in any case, e.g.
Constructs a DKSOverlayAddress from a DKSOverlayURL string having the following format:
dksoverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
Defines an interface for callbacks that a FailedIntervalHandler requires
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
Returns the DKSNetURL representing this DKSNetNetwork in the following format:
dksnet://[IP]:[PORT]
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
The scheme of the url can be in any case, e.g.
Returns the DKSOverlayURL representing this DKSOverlayNetwork in the following format:
DKSOverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
Returns the DKS URL representing this DKSRef with the following format:
dks://[IP]:[PORT]/[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
Returns the DKS WEB server URL representing this DKSRef with the following format:
dks://[IP]:[PORT+1]/[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
Gets the number of concurrent lookups made (default 2), if >=1 then several lookups are
made at the same time to different replicas to increase the fault-tolerance and the response time
Creates an empty local Distributed Hash Table (DHT), listening on default port 4440
Other nodes can connect to this DHT using a reference to this instance
An IMPORTANT invariant is to call close() upon exit to disconnect.
Creates an empty local Distributed Hash Table (DHT), listening on default port 4440
Other nodes can connect to this DHT using a reference to this instance
An IMPORTANT invariant is to call close() upon exit to disconnect.
Joins an existing Distributed Hash Table (DHT) running on some machines, will bind to local port 4444
An IMPORTANT invariant is to call close() upon exit to disconnect.
Joins an existing Distributed Hash Table (DHT) running on some machines, will bind to the supplied local port number
An IMPORTANT invariant is to call close() upon exit to disconnect.
This callback routine is called at the joining node, when the node is about to join
INVARIANT: this method must make a callback to DKSCallbacks.joinCallbackReturn
This callback routine is called at the leaving node, when the node is about to leave
INVARIANT: this method must make a callback to DKSCallbacks.joinCallbackReturn
Constructs a DKSRef from a DKS URL string having the following format:
dksref://[IP]:[PORT]/[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
Sorted set of Nonces (could have been implemented as a LinkedList)
Head element is the youngest, while the tail is the oldest
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
Nonces() -
Constructor for class org.kth.dks.dks_node.Nonces
Implements a Future that is reset after it returns an object with get()
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2004
Company: KTH-IMIT/SICS
Will route a message the DKS node that is responsible for the
given identifier, and call routeCallback() at that node and
give it the payload, upon which the responsible node will
respond with a payload which is returned to the caller
Will route a message the DKS node that is responsible for the given identifier
and give it the payload, upon which the responsible node will respond
with a payload which is returned
Will route a message the DKS node that is responsible for the given identifier, and call
routeCallback() at that node and give it the payload, upon which the responsible node will respond
with a payload which is returned to the caller
Will route a message the DKS node that is responsible for the
given identifier, and call routeCallbackAsync() at that node
and give it the payload, upon which the responsible node will
respond with a payload which is returned to the caller
Will route a message to the DKS node that is responsible for the given identifier
and give it the payload, upon which the responsible node will respond
with a payload which is returned
Will route a message the DKS node that is responsible for the given identifier, and call
routeCallbackAsync() at that node and give it the payload, upon which the responsible node will respond
with a payload which is returned to the caller
Will route a message from fromNode to the DKS node that is responsible for the
given identifier, and call routeCallbackAsync() at that node
and give it the payload, upon which the responsible node will
respond with a payload which is returned to the caller
Will route a message from firstNode to the DKS node that is responsible for the given identifier
and give it the payload, upon which the responsible node will respond
with a payload which is returned
Will route a message, starting at firstNode, the DKS node that is responsible for the given identifier, and call
routeCallbackAsync() at that node and give it the payload, upon which the responsible node will respond
with a payload which is returned to the caller.
Sets the number of times items are replicated in the DHT
precondition: k must divide getKeyRange() (or getKeyRange() must be a multiple of k)
must be invoked before join() or create().
Every object implementing this interface gets registered in a
ConnectionManager, this method this method unregisters the
object in the ConnectionManager.
Every object implementing this interface gets registered in a ConnectionManager, this method
this method unregisters the object in the ConnectionManager.
Constructs a DKSRef from a DKS URL string having the following format:
dks://[IP]:[PORT]/[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID]/[NONCE])
IP can be either an IP number of a hostname,
PORT must be an integer (<=65535) describing the port number of the DKS,
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).