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

A

AbstractDVMNode - Class in org.planx.xmlstore.koala.nodes
Skeletal implementation of a concrete SystemNode.
AbstractNodeLookupOperation<E> - Class in org.planx.routing.kademlia.operation
Finds the K closest nodes to a specified identifier.
AbstractNodeLookupOperation(Configuration, MessageServer, Space, Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.AbstractNodeLookupOperation
Create a NodeLookupOperation for the specified id.
AbstractPositionalData - Class in org.planx.io
Combines a DataInput and a DataOutput into a PositionalData.
AbstractPositionalData(DataInput, DataOutput) - Constructor for class org.planx.io.AbstractPositionalData
 
AbstractXMLStore<R extends Reference> - Class in org.planx.xmlstore.stores
A convenience class for implementing XMLStores.
AcknowledgeMessage - Class in org.planx.routing.kademlia.operation
 
AcknowledgeMessage(Node) - Constructor for class org.planx.routing.kademlia.operation.AcknowledgeMessage
 
AcknowledgeMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.AcknowledgeMessage
 
add(E) - Method in class org.planx.util.WeakHashSet
 
addFileSystem(FileSystem) - Method in class org.planx.io.MultiFileSystem
Adds the specified file system to this MultiFileSystem.
addIndirection(Locator, Locator) - Method in class org.planx.xmlstore.koala.storage.Segment
 
addNeighbourhoodListener(NeighbourhoodListener) - Method in interface org.planx.routing.DistributedMap
Adds a NeighbourhoodListener.
addNeighbourhoodListener(NeighbourhoodListener) - Method in class org.planx.routing.kademlia.Kademlia
 
addNeighbourhoodListener(NeighbourhoodListener) - Method in class org.planx.routing.kademlia.Space
 
addReferenceListener(LocatorListener) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Adds the specified LocatorListener for receiving Reference events.
addRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.RootManager
 
addRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
addRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
addStreamer(byte, Class<? extends E>, Streamer<E>) - Method in class org.planx.io.PolymorphicStreamer
 
addWeakRoot(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
Adds the specified LocalLocator as a transient root.
all() - Method in interface org.planx.io.FileSystem
Returns a locator encapsulating all data currently in this file system.
all() - Method in class org.planx.io.LocalFileSystem
 
all() - Method in class org.planx.io.MemoryFileSystem
 
all() - Method in class org.planx.io.MultiFileSystem
Allocates data in the file system designated for new allocations.
all() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
allocate() - Method in interface org.planx.io.FileSystem
(Optional) Returns a locator to a free write position that can hold an unspecified amount of bytes.
allocate(long) - Method in interface org.planx.io.FileSystem
Returns a locator to a free write position that can hold size number of bytes.
allocate() - Method in class org.planx.io.LocalFileSystem
 
allocate(long) - Method in class org.planx.io.LocalFileSystem
 
allocate() - Method in class org.planx.io.MemoryFileSystem
Always succeeds and allocates space at end of the buffer.
allocate(long) - Method in class org.planx.io.MemoryFileSystem
Always succeeds and allocates space at end of the buffer.
allocate() - Method in class org.planx.io.MultiFileSystem
Allocates data in the file system designated for new allocations.
allocate(long) - Method in class org.planx.io.MultiFileSystem
Allocates data in the file system designated for new allocations.
allocate() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
allocate(long) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
Array - Class in org.planx.util
 
asIdentifier() - Method in class org.planx.xmlstore.references.ValueReference
 
asMemoryRoot(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
asMemoryRoot(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.StorageManager
Returns a weak, in-memory root for a strong root.
asUnmodifiableList(E[]) - Static method in class org.planx.util.Array
Returns an immutable view of the specified array.
asWeakRoot(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
 
Attribute - Interface in org.planx.xmlstore
The Attribute interface represents an attribute in an XML element.
attributeCount() - Method in class org.planx.xmlstore.DocNode
Returns the number of attributes of this node.

B

B - Variable in class org.planx.routing.kademlia.Configuration
Log base exponent.
Base64 - Class in org.planx.util
 
Base64() - Constructor for class org.planx.util.Base64
 
BijectiveMap<K,V> - Class in org.planx.util
A translation which is one-to-one and onto.
BijectiveMap() - Constructor for class org.planx.util.BijectiveMap
 
BINARY - Static variable in interface org.planx.xmlstore.Node
Node type binary data.
bind(String, ValueReference) - Method in class org.planx.xmlstore.koala.nameserver.GlobalNameServer
 
bind(String, LocalLocator) - Method in class org.planx.xmlstore.koala.nameserver.LocalNameServer
 
bind(String, R) - Method in interface org.planx.xmlstore.NameServer
Bind the name to the value reference in the name server.
BlockingNodeProxy - Class in org.planx.xmlstore.koala.nodes
 
BlockingNodeProxy(Future<SystemNode>) - Constructor for class org.planx.xmlstore.koala.nodes.BlockingNodeProxy
 
Bound - Class in org.planx.io
A Bound consists of a Locator and a length.
Bound(long, long, SourceId) - Constructor for class org.planx.io.Bound
 
Bound(Locator, long) - Constructor for class org.planx.io.Bound
 
build(Node) - Static method in class org.planx.xmlstore.input.DOMBuilder
Converts a DOM representation of an XML tree to a DVM representation.
build(String) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from a file.
build(String, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from a file.
build(String, XMLStore<R>) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from a file and saves it in XMLStore during loading.
build(String, XMLStore<R>, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from a file and saves it in XMLStore during loading.
build(String, XMLStore<R>, boolean, int) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from a file and saves it in XMLStore during loading.
build(String, NodeListener, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
 
build(InputSource) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from an InputSource.
build(InputSource, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from an InputSource.
build(InputSource, XMLStore<R>) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from an InputSource and saves it in XMLStore during loading.
build(InputSource, XMLStore<Reference>, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
Loads an XML document from an InputSource and saves it in XMLStore during loading.
build(InputSource, XMLStore<R>, boolean, int) - Static method in class org.planx.xmlstore.input.SAXBuilder
 
build(InputSource, NodeListener, boolean) - Static method in class org.planx.xmlstore.input.SAXBuilder
 
byteArrayStreamer() - Static method in class org.planx.io.Streamers
 
byteArrayToAltBase64(byte[]) - Static method in class org.planx.util.Base64
Translates the specified byte array into an "alternate representation" Base64 string.
byteArrayToBase64(byte[]) - Static method in class org.planx.util.Base64
 
ByteData - Class in org.planx.io
A PositionalData source that uses a byte array as data.
ByteData() - Constructor for class org.planx.io.ByteData
 
ByteData(SourceId) - Constructor for class org.planx.io.ByteData
 
ByteData(int) - Constructor for class org.planx.io.ByteData
 
ByteData(int, SourceId) - Constructor for class org.planx.io.ByteData
 
ByteData(byte[]) - Constructor for class org.planx.io.ByteData
 
ByteData(byte[], SourceId) - Constructor for class org.planx.io.ByteData
 

C

CacheNodeFileSystem<R extends Locatable> - Class in org.planx.xmlstore.koala.io
A NodeFileSystem that caches shared nodes (nodes that have the isShared flag set to true).
CacheNodeFileSystem(FileSystem, IOPolicy<R>, boolean) - Constructor for class org.planx.xmlstore.koala.io.CacheNodeFileSystem
The NodeFileSystem will use a NodeConverter for converting nodes to and from byte representation.
cacheRetrieve(SourceId) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
calculateHash(List<TimestampedEntry>) - Method in class org.planx.routing.kademlia.HashCalculator
Calculates a unique hash of the keys in the specified bundle.
characters(char[], int, int) - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
charAt(int) - Method in class org.planx.xmlstore.DocAttribute
 
charAt(int) - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
CHARDATA - Static variable in interface org.planx.xmlstore.Node
Node type character data.
childCount() - Method in class org.planx.xmlstore.DocNode
Returns the number of children of this node.
childCount() - Method in class org.planx.xmlstore.koala.io.RawNode
 
childCount(RawNode) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
childCount() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
childLocatorsSize(SourceId, List<Locator>) - Static method in class org.planx.xmlstore.koala.io.NodeConverter
 
chooseCanonical(List<Compactor<RawNode>.Edge>) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Called during discrimination to choose the canonical node from among an equivalence class of nodes.
chooseCanonical(List<Compactor<RawNode>.Edge>) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
Calls IOPolicy.chooseCanonical(java.util.List.Edge>).
chooseCanonical(List<Compactor<RawNode>.Edge>) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Chooses the first node as canonical node.
chooseCanonical(List<Compactor<RawNode>.Edge>) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Chooses the first node as canonical node.
clear() - Method in class org.planx.io.ByteData
Discards all data from the byte array buffer and resets the position to zero.
clear() - Method in interface org.planx.io.FileSystem
Frees all data in this FileSystem.
clear() - Method in class org.planx.io.LocalFileSystem
 
clear() - Method in class org.planx.io.MemoryFileSystem
Frees all data and generates a new SourceId.
clear() - Method in class org.planx.io.MultiFileSystem
 
clear() - Method in class org.planx.util.BijectiveMap
 
clear() - Method in class org.planx.util.MultiMap
Removes all mappings from this MultiMap.
clear() - Method in class org.planx.util.SoftValueMap
 
clear() - Method in class org.planx.util.WeakHashSet
 
clear() - Method in class org.planx.util.WeakValueMap
 
clear() - Method in class org.planx.xmlstore.koala.io.CacheNodeFileSystem
 
clear() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
clear() - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
Releases all ressources held by the handler.
clearModified() - Method in class org.planx.io.ByteData
 
clearModified() - Method in interface org.planx.io.FileSystem
Marks this file system as unmodified.
clearModified() - Method in class org.planx.io.LocalFileSystem
 
clearModified() - Method in class org.planx.io.MemoryFileSystem
 
clearModified() - Method in class org.planx.io.MultiFileSystem
Clears the modified status of all the file systems.
clearModified() - Method in class org.planx.util.BijectiveMap
 
clearModified() - Method in class org.planx.util.MultiMap
 
clearModified() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
close() - Method in class org.planx.io.FileData
 
close() - Method in interface org.planx.io.FileSystem
Closes this file system and releases all resources.
close() - Method in class org.planx.io.LocalFileSystem
 
close() - Method in class org.planx.io.MemoryFileSystem
No effect.
close() - Method in class org.planx.io.MultiFileSystem
Closes all the contained file systems.
close() - Method in interface org.planx.routing.DistributedMap
Closes the map and releases all ressources.
close() - Method in class org.planx.routing.kademlia.Kademlia
Closes the map.
close() - Method in class org.planx.routing.messaging.MessageServer
Signals to the MessageServer thread that it should stop running.
close() - Method in class org.planx.util.PersistentMap
Flushes all data to persistent storage and releases all resources.
close() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
close() - Method in class org.planx.xmlstore.koala.nameserver.GlobalNameServer
 
close() - Method in class org.planx.xmlstore.koala.nameserver.LocalNameServer
 
close() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Flushes and closes.
close() - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
close() - Method in interface org.planx.xmlstore.NameServer
Closes the NameServer releasing all resources.
close() - Method in class org.planx.xmlstore.stores.AbstractXMLStore
 
close() - Method in class org.planx.xmlstore.stores.DistributedXMLStore
 
close() - Method in class org.planx.xmlstore.stores.LocalXMLStore
 
close() - Method in class org.planx.xmlstore.stores.NetworkListener
 
close() - Method in class org.planx.xmlstore.stores.RemoteXMLStore
 
close() - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
close() - Method in interface org.planx.xmlstore.XMLStore
The method is used to let the XMLStore properly commit all data to the underlying ressource, release resources, and so forth.
code() - Method in class org.planx.routing.kademlia.operation.AcknowledgeMessage
 
code() - Method in class org.planx.routing.kademlia.operation.ConnectMessage
 
code() - Method in class org.planx.routing.kademlia.operation.DataLookupMessage
 
code() - Method in class org.planx.routing.kademlia.operation.DataMessage
 
code() - Method in class org.planx.routing.kademlia.operation.HashMessage
 
code() - Method in class org.planx.routing.kademlia.operation.HashRequestMessage
 
code() - Method in class org.planx.routing.kademlia.operation.LookupMessage
 
code() - Method in class org.planx.routing.kademlia.operation.NodeLookupMessage
 
code() - Method in class org.planx.routing.kademlia.operation.NodeReplyMessage
 
code() - Method in class org.planx.routing.kademlia.operation.OriginMessage
 
code() - Method in class org.planx.routing.kademlia.operation.RemoveMessage
 
code() - Method in class org.planx.routing.kademlia.operation.StoreMessage
 
code() - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
code() - Method in interface org.planx.routing.messaging.Message
The unique code for the message type, used to differentiate all messages from each other.
CODE_ACKNOWLEDGE - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_CONNECT - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_DATA - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_DATA_LOOKUP - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_HASH - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_HASH_REQUEST - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_NODE_LOOKUP - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_NODE_REPLY - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_REMOVE - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_STORE - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
CODE_STORE_REQUEST - Static variable in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
compactIntSize(int) - Static method in class org.planx.io.Streamers
Returns the number of bytes that will be written by the Streamers.writeCompactInt(java.io.DataOutput, int) method for the specified int.
compactLongSize(long) - Static method in class org.planx.io.Streamers
Returns the number of bytes that will be written by the Streamers.writeCompactLong(java.io.DataOutput, long) method for the specified long.
compare(Node, Node) - Method in class org.planx.routing.kademlia.Node.DistanceComparator
Compare two objects which must both be of type Node and determine which is closest to the identifier specified in the constructor.
compare(Node, Node) - Method in class org.planx.routing.kademlia.Node.FirstSeenComparator
Compare two objects which must both be of type Node and determine which is seen first.
compare(Node, Node) - Method in class org.planx.routing.kademlia.Node.LastSeenComparator
Compare two objects which must both be of type Node and determine which is seen last.
compareTo(Locator) - Method in class org.planx.io.Locator
Returns a negative integer if this Locator has a position less than the argument Locator, zero if they have the same position and a positive integer if this Locator has a position greater than the argument Locator.
compareTo(byte[], byte[]) - Static method in class org.planx.util.Array
Compare to arrays (according to the Comparable.compareTo comparison convention) lexicographically.
compareTo(Attribute) - Method in class org.planx.xmlstore.DocAttribute
 
compareTo(Attribute) - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
compareTo(ValueReference) - Method in class org.planx.xmlstore.references.ValueReference
 
CONCURRENCY - Variable in class org.planx.routing.kademlia.Configuration
Maximum number of concurrent messages in transit.
Concurrency - Class in org.planx.util
 
Configuration - Class in org.planx.routing.kademlia
A set of Kademlia configuration parameters.
Configuration() - Constructor for class org.planx.routing.kademlia.Configuration
 
connect(InetSocketAddress) - Method in class org.planx.routing.kademlia.Kademlia
Attempts to connect to an existing peer-to-peer network.
ConnectMessage - Class in org.planx.routing.kademlia.operation
 
ConnectMessage(Node) - Constructor for class org.planx.routing.kademlia.operation.ConnectMessage
 
ConnectMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.ConnectMessage
 
ConnectOperation - Class in org.planx.routing.kademlia.operation
Connects to an existing Kademlia network using a bootstrap node.
ConnectOperation(Configuration, MessageServer, Space, Node, InetAddress, int) - Constructor for class org.planx.routing.kademlia.operation.ConnectOperation
 
ConnectReceiver - Class in org.planx.routing.kademlia.operation
Receives a ConnectMessage and sends an AcknowledgeMessage as reply.
ConnectReceiver(MessageServer, Node, Space) - Constructor for class org.planx.routing.kademlia.operation.ConnectReceiver
 
contains(Identifier) - Method in interface org.planx.routing.DistributedMap
Returns true if the map contains the specified key and false otherwise.
contains(Identifier) - Method in class org.planx.routing.kademlia.Kademlia
Returns true if the map contains the specified key and false otherwise.
contains(Object) - Method in class org.planx.util.UnmodifiableArrayList
 
contains(Object) - Method in class org.planx.util.WeakHashSet
 
contains(SourceId) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns true if and only if a live segment exists with the specified SourceId.
containsKey(Object) - Method in class org.planx.util.BijectiveMap
 
containsKey(Object) - Method in class org.planx.util.MultiMap
 
containsKey(Object) - Method in class org.planx.util.SoftValueMap
 
containsKey(Object) - Method in class org.planx.util.WeakValueMap
 
containsValue(Object) - Method in class org.planx.util.BijectiveMap
 
contentEquals(Node) - Method in class org.planx.xmlstore.DocNode
Returns true if the underlying node is equal to the specified node, otherwise false.
contentEquals(Node) - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
contentEquals(Node) - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
contentEquals(Node) - Method in interface org.planx.xmlstore.Node
Returns true if and only if the specified node has the same type, value, and attributes as this node, and their children recursively satisfy the same predicate.
convert(Node) - Static method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
Additional method that converts any Node to a SystemNode.
createAttribute(String, String) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createAttribute(String, String) - Method in class org.planx.xmlstore.NodeFactory
 
createBinaryNode(byte[]) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createBinaryNode(byte[]) - Method in class org.planx.xmlstore.NodeFactory
 
createCharDataNode(String) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createCharDataNode(String) - Method in class org.planx.xmlstore.NodeFactory
 
createElementNode(String) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createElementNode(String, List<? extends Node>) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createElementNode(String, List<? extends Node>, List<Attribute>) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createElementNode(String, Node...) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createElementNode(String, Node[], Attribute[]) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createElementNode(String) - Method in class org.planx.xmlstore.NodeFactory
 
createElementNode(String, List<? extends Node>) - Method in class org.planx.xmlstore.NodeFactory
 
createElementNode(String, List<? extends Node>, List<Attribute>) - Method in class org.planx.xmlstore.NodeFactory
 
createElementNode(String, Node...) - Method in class org.planx.xmlstore.NodeFactory
 
createElementNode(String, Node[], Attribute[]) - Method in class org.planx.xmlstore.NodeFactory
 
createIOPolicy(Segment...) - Method in class org.planx.xmlstore.koala.storage.PolicyFactory
Returns a StoragePolicy instance.
createMessage(byte, DataInput) - Method in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
createMessage(byte, DataInput) - Method in interface org.planx.routing.messaging.MessageFactory
Creates a Message of type code from the specified stream.
createNode(NodeFileSystem, Locator) - Static method in class org.planx.xmlstore.koala.io.RawNode
Creates a RawNode based on the type read from the location of a node.
createProxy(XMLStore<R>, R) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
createProxy(XMLStore<R>, R) - Method in class org.planx.xmlstore.NodeFactory
Use this to convert a reference to a node without loading data.
createReceiver(byte, MessageServer) - Method in class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
createReceiver(byte, MessageServer) - Method in interface org.planx.routing.messaging.MessageFactory
Creates a Receiver for handling a Message of type code.

D

DataLookupMessage - Class in org.planx.routing.kademlia.operation
 
DataLookupMessage(Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.DataLookupMessage
 
DataLookupMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.DataLookupMessage
 
DataLookupOperation - Class in org.planx.routing.kademlia.operation
Looks up the specified identifier and returns the value associated with it.
DataLookupOperation(Configuration, MessageServer, Space, Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.DataLookupOperation
 
DataLookupReceiver - Class in org.planx.routing.kademlia.operation
Responds to a DataLookupMessage by sending a DataMessage containing the requested mapping or by sending a NodeReplyMessage containing the K closest nodes to the request key known by this node.
DataLookupReceiver(MessageServer, Node, Space, Map) - Constructor for class org.planx.routing.kademlia.operation.DataLookupReceiver
 
DataMessage - Class in org.planx.routing.kademlia.operation
 
DataMessage(Node, Identifier, TimestampedValue) - Constructor for class org.planx.routing.kademlia.operation.DataMessage
 
DataMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.DataMessage
 
dataSize() - Method in class org.planx.xmlstore.koala.storage.Segment
 
delete() - Method in class org.planx.xmlstore.koala.storage.Segment
Marks this Segment as deleted.
delete(SourceId) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Frees the on-disk space occupied by the data in the segment with the specified SourceId and invalidates any in-memory copy of the segment.
delete(SourceId) - Method in class org.planx.xmlstore.koala.storage.Sharer
 
discriminate(List<? extends U>, Extractor<U, ? extends RawNode, S>) - Method in class org.planx.xmlstore.koala.io.RawNodeDiscriminator
 
discriminate(List<S>) - Method in class org.planx.xmlstore.koala.io.RawNodeDiscriminator
 
DistributedMap - Interface in org.planx.routing
Maps keys to values in a distributed setting using Identifiers as keys.
DistributedXMLStore - Class in org.planx.xmlstore.stores
A peer-to-peer XMLStore that uses Kademlia as routing module.
DistributedXMLStore(XMLStore<ValueReference>, int, int, InetSocketAddress) - Constructor for class org.planx.xmlstore.stores.DistributedXMLStore
Creates a DistributedXMLStore which listens for routing requests on the specified UDP port and listens for data transfer requests on the specified TCP port.
DistributedXMLStore(XMLStore<ValueReference>, int, int, InetSocketAddress, Configuration, int) - Constructor for class org.planx.xmlstore.stores.DistributedXMLStore
Creates a DistributedXMLStore which listens for routing requests on the specified UDP port and listens for data transfer requests on the specified TCP port.
DocAttribute - Class in org.planx.xmlstore
An Attribute returned by DocNode.
DocNode - Class in org.planx.xmlstore
DocNode is an occurrence of a Node in a document.
DocNode(Node) - Constructor for class org.planx.xmlstore.DocNode
Create a DocNode which is the root of a document.
doDebug - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
 
doDebug - Static variable in class org.planx.xmlstore.koala.storage.StoragePolicy
 
DOMBuilder - Class in org.planx.xmlstore.input
 
DOMUtil - Class in org.planx.xmlstore.input
 
DOMUtil() - Constructor for class org.planx.xmlstore.input.DOMUtil
 
DVMAttribute - Class in org.planx.xmlstore.koala.nodes
 
DVMAttribute(String, String) - Constructor for class org.planx.xmlstore.koala.nodes.DVMAttribute
 
DVMBinaryNode - Class in org.planx.xmlstore.koala.nodes
An immutable BINARY node.
DVMBinaryNode(byte[]) - Constructor for class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Creates a BINARY node with the specified value.
DVMBinaryNode(byte[], Locator, boolean) - Constructor for class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Creates a BINARY node and sets its associated locator and isShared status.
DVMCharDataNode - Class in org.planx.xmlstore.koala.nodes
An immutable CHARDATA node.
DVMCharDataNode(String) - Constructor for class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Creates a CHARDATA node with the specified value.
DVMCharDataNode(String, Locator, boolean) - Constructor for class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Creates a CHARDATA node and sets its associated locator and isShared status.
DVMElementNode - Class in org.planx.xmlstore.koala.nodes
An immutable ELEMENT node.
DVMElementNode(String) - Constructor for class org.planx.xmlstore.koala.nodes.DVMElementNode
 
DVMElementNode(String, List<SystemNode>, List<Attribute>) - Constructor for class org.planx.xmlstore.koala.nodes.DVMElementNode
 
DVMElementNode(String, SystemNode[], Attribute[]) - Constructor for class org.planx.xmlstore.koala.nodes.DVMElementNode
 
DVMHandler - Class in org.planx.xmlstore.koala.nodes
 
DVMHandler() - Constructor for class org.planx.xmlstore.koala.nodes.DVMHandler
 
DVMHandler(NodeListener) - Constructor for class org.planx.xmlstore.koala.nodes.DVMHandler
 
DVMHandler(NodeListener, boolean) - Constructor for class org.planx.xmlstore.koala.nodes.DVMHandler
 
DVMNodeFactory - Class in org.planx.xmlstore.koala.nodes
An implementation of NodeFactory that operates strictly on SystemNodes.
DVMNodeFactory() - Constructor for class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 

E

ELEMENT - Static variable in interface org.planx.xmlstore.Node
Node type element.
endDocument() - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
endElement(String, String, String) - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
ensureCapacity(int[], int, int) - Static method in class org.planx.util.Array
Takes an array as argument and returns an array containing the same elements, but where it is ensured that the array can contain the specified minimum number of elements.
ensureCapacity(int[][], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
ensureCapacity(byte[], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
ensureCapacity(CharSequence[], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
ensureCapacity(CharSequence[][], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
ensureCapacity(List[], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
ensureCapacity(Object[], int, int) - Static method in class org.planx.util.Array
See Array.ensureCapacity(int[],int,int).
entrySet() - Method in class org.planx.util.PersistentMap
 
entrySet() - Method in class org.planx.util.SoftValueMap
 
entrySet() - Method in class org.planx.util.WeakValueMap
 
equals(Object) - Method in class org.planx.io.Locator
 
equals(Object) - Method in class org.planx.io.SourceId
 
equals(Object) - Method in class org.planx.routing.Identifier
 
equals(Object) - Method in class org.planx.routing.kademlia.Node
Returns true if o is a Node and has the same identifier as this.
equals(Object) - Method in class org.planx.util.ObjectReference
Two ObjectReferences are equal if and only if the objects that they point to are equal.
equals(Object) - Method in class org.planx.xmlstore.DocAttribute
 
equals(Object) - Method in class org.planx.xmlstore.koala.io.RawNode
 
equals(Object) - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
equals(Object) - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Only equal if object is a Node with the same type and same value.
equals(Object) - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Only equal if object is a Node with the same type and same value.
equals(Object) - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
equals(Object) - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
If the argument Node is also a NodeProxy, attempts to compare the two nodes using references, otherwise the proxied node is loaded and a structural comparison is (probably) performed.
equals(Object) - Method in class org.planx.xmlstore.koala.storage.Segment
Returns true if the argument is also a Segment and it has the same SourceId as this Segment or the argument is a SourceId which is equal to this segment's SourceId.
equals(Object) - Method in interface org.planx.xmlstore.Node
Returns true if and only if the specified object is also a Node, they have the same type, their node values are equal, their attributes are equals as a set, and their children are recursively equal according to this definition.
equals(Object) - Method in class org.planx.xmlstore.references.LocalLocator
 
equals(Object) - Method in class org.planx.xmlstore.references.RelativeReference
Returns true if and only if the specified object is a RelativeReference consisting of a root equal to the root of this reference, and a path equal to the path of this reference.
equals(Object) - Method in class org.planx.xmlstore.references.ValueReference
Returns true if and only if the specified object is also a ValueReference and it represents the same content hash as this ValueReference.
exec(R, R) - Method in interface org.planx.xmlstore.ExecXMLStore
Execute the code referenced by codeRef supplied with the argument reference by argsRef.
exec(ValueReference, ValueReference) - Method in class org.planx.xmlstore.stores.DistributedXMLStore
 
exec(R, R) - Method in class org.planx.xmlstore.stores.ExecuteXMLStore
Execute the code referenced by codeRef supplied with the argument reference by argsRef.
exec(R, R) - Method in class org.planx.xmlstore.stores.OptimisticReadXMLStore
 
exec(ValueReference, ValueReference) - Method in class org.planx.xmlstore.stores.RemoteXMLStore
 
exec(ValueReference, ValueReference) - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
ExecException - Exception in org.planx.xmlstore
 
ExecException(Throwable) - Constructor for exception org.planx.xmlstore.ExecException
 
ExecException(String) - Constructor for exception org.planx.xmlstore.ExecException
 
ExecException(String, Throwable) - Constructor for exception org.planx.xmlstore.ExecException
 
ExecException(Reference, Throwable) - Constructor for exception org.planx.xmlstore.ExecException
 
execute() - Method in class org.planx.routing.kademlia.operation.AbstractNodeLookupOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.ConnectOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.DataLookupOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.NodeLookupOperation
 
execute() - Method in interface org.planx.routing.kademlia.operation.Operation
Starts the operation and returns when the operation is finished.
execute() - Method in class org.planx.routing.kademlia.operation.RefreshOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.RemoveOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.ResponsibleOperation
Returns a List of InetSocketAddress objects identifying the K closest peers to the key specified in the constructor.
execute() - Method in class org.planx.routing.kademlia.operation.RestoreOperation
 
execute() - Method in class org.planx.routing.kademlia.operation.StoreOperation
 
ExecuteXMLStore<R extends Reference> - Class in org.planx.xmlstore.stores
An implementation of ExecXMLStore that simply loads code and arguments from the decorated XMLStore and uses the system class loader to turn the binary node into a Java class.
ExecuteXMLStore(XMLStore<R>) - Constructor for class org.planx.xmlstore.stores.ExecuteXMLStore
 
ExecuteXMLStore(XMLStore<R>, ClassLoader) - Constructor for class org.planx.xmlstore.stores.ExecuteXMLStore
 
ExecXMLStore<R extends Reference> - Interface in org.planx.xmlstore
An ExecXMLStore adds the ability to execute code (stored in the XML Store) to an XML Store.

F

FileData - Class in org.planx.io
A PositionalData source that uses a File as data.
FileData(File) - Constructor for class org.planx.io.FileData
 
FileData(String) - Constructor for class org.planx.io.FileData
 
FileData(File, SourceId) - Constructor for class org.planx.io.FileData
 
FileData(String, SourceId) - Constructor for class org.planx.io.FileData
 
FileSystem - Interface in org.planx.io
A file system with allocation and free capabilities.
fileSystem() - Method in class org.planx.xmlstore.koala.storage.Segment
Returns the in-memory NodeFileSystem associated with this segment.
firstSeen() - Method in class org.planx.routing.kademlia.Node
Returns the time this node was first seen.
FIRSTSEEN_COMPARATOR - Static variable in class org.planx.routing.kademlia.Node
 
flush() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
flush() - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
flushWrite() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Commits all data written to the single in-memory write segment to permanent storage and creates a new, empty in-memory write segment.
forwardId() - Method in class org.planx.xmlstore.koala.storage.Segment
 
free(Bound) - Method in interface org.planx.io.FileSystem
Frees the space occupied by the specified Bound.
free(Bound) - Method in class org.planx.io.LocalFileSystem
 
free(Bound) - Method in class org.planx.io.MemoryFileSystem
Space cannot be freed, so this method does nothing.
free(Bound) - Method in class org.planx.io.MultiFileSystem
 
free(Bound) - Method in class org.planx.xmlstore.koala.io.CacheNodeFileSystem
 
free(Bound) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
fromByteArray(byte[], Streamer<E>) - Static method in class org.planx.io.Streamers
 
fromStream(DataInput) - Method in class org.planx.io.Locator.CompactStreamer
 
fromStream(DataInput) - Method in class org.planx.io.PolymorphicStreamer
 
fromStream(DataInput) - Method in interface org.planx.io.Streamer
Reads an object of class E from the data source.
fromStream(DataInput) - Method in class org.planx.routing.Identifier
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.Node
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.DataMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.HashMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.LookupMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.NodeReplyMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.OriginMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.RemoveMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.StoreMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
fromStream(DataInput) - Method in class org.planx.routing.kademlia.TimestampedValue
 
fromStream(DataInput) - Method in interface org.planx.routing.messaging.Streamable
Reads the internal state of the Streamable object from the input stream.
future(V) - Static method in class org.planx.util.Concurrency
Returns an already completed Future merely wrapping a value.

G

get(Identifier) - Method in interface org.planx.routing.DistributedMap
Returns the value associated with the specified key or null if does not exist.
get(Identifier) - Method in class org.planx.routing.kademlia.Kademlia
Returns the value associated with the specified key.
get(Object) - Method in class org.planx.util.BijectiveMap
 
get() - Method in class org.planx.util.ObjectReference
Returns the object pointed to.
get(K) - Method in class org.planx.util.PersistentMap
 
get(Object) - Method in class org.planx.util.SoftValueMap
 
get(int) - Method in class org.planx.util.UnmodifiableArrayList
 
get(Object) - Method in class org.planx.util.WeakHashSet
 
get(Object) - Method in class org.planx.util.WeakValueMap
 
getAll() - Method in class org.planx.routing.kademlia.Space
Returns all nodes in the tree of spaces rooted at this space.
getAllocationFileSystem() - Method in class org.planx.io.MultiFileSystem
Returns the file system designated for new allocations of data or null if none exists.
getAttribute(int) - Method in class org.planx.xmlstore.DocNode
Returns the attribute with the specified index.
getAttribute(String) - Method in class org.planx.xmlstore.DocNode
 
getAttribute(String) - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Always null.
getAttribute(String) - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Always null.
getAttribute(String) - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
getAttribute(String) - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getAttribute(String) - Method in interface org.planx.xmlstore.Node
Returns the attribute with the given name.
getAttributeNames() - Method in class org.planx.xmlstore.DocNode
 
getAttributeNames() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Empty array.
getAttributeNames() - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Empty array.
getAttributeNames() - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
getAttributeNames() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getAttributeNames() - Method in interface org.planx.xmlstore.Node
Returns the names of this Node's attributes.
getAttributes() - Method in class org.planx.xmlstore.DocNode
 
getAttributes() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getAttributes() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
Return the empty list.
getAttributes() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Empty list.
getAttributes() - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Empty list.
getAttributes() - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
getAttributes() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getAttributes() - Method in interface org.planx.xmlstore.Node
Returns the attributes of this Node.
getBaseTime() - Method in class org.planx.routing.kademlia.operation.HashMessage
 
getBegin() - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
getBoundStreamer() - Static method in class org.planx.io.Bound
Returns a Streamer capable of converting a Bound to and from byte representation.
getByteArray() - Method in class org.planx.routing.kademlia.TimestampedValue
Returns the value as a byte array.
getBytes() - Method in class org.planx.xmlstore.DocNode
 
getBytes() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
Convenience implementation that simply returns the bytes of the string returned by getNodeValue using the default character encoding.
getBytes() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Returns the data of this BINARY node.
getBytes() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getBytes() - Method in interface org.planx.xmlstore.Node
Returns the value of this node as bytes.
getChild(int) - Method in class org.planx.xmlstore.DocNode
Returns the child with the specified index.
getChild(NodeFileSystem, int) - Method in class org.planx.xmlstore.koala.io.RawNode
 
getChild(RawNode, int) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
getChild(NodeFileSystem, int) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
getChildren() - Method in class org.planx.xmlstore.DocNode
 
getChildren() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getChildren() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
Returns the locators of the children given in the constructor.
getChildren() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Empty list.
getChildren() - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Empty list.
getChildren() - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
getChildren() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getChildren() - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
getChildren() - Method in interface org.planx.xmlstore.Node
Returns the children of this Node.
getClosestNodes(Identifier) - Method in class org.planx.routing.kademlia.Space
Returns the K nodes known by this space closest to the specified id.
getCompactId() - Method in class org.planx.io.Locator.CompactStreamer
 
getContactPort() - Method in interface org.planx.routing.DistributedMap
Returns the contact port of this peer.
getContactPort() - Method in class org.planx.routing.kademlia.Kademlia
 
getContactPort() - Method in class org.planx.routing.kademlia.Node
Returns the contact port associated with this node.
getData(Locator) - Method in interface org.planx.io.FileSystem
Returns a PositionalData for reading and writing to the FileSystem at the specified location.
getData(Locator) - Method in class org.planx.io.LocalFileSystem
Returns a shared PositionalData instance which implies that data cannot be copied on-the-fly from one part of this FileSystem to another.
getData(Locator) - Method in class org.planx.io.MemoryFileSystem
Returns a unique PositionalData instance with a view of the data in this FileSystem.
getData(Locator) - Method in class org.planx.io.MultiFileSystem
 
getData(Locator) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
getDirect() - Method in class org.planx.xmlstore.references.RelativeDualReference
 
getDiscriminator(Memory) - Static method in class org.planx.io.Locator
Returns a Discriminator capable of multiset discrimination of Locators.
getDiscriminator() - Static method in class org.planx.xmlstore.references.ValueReference
 
getDiscriminator(Memory) - Static method in class org.planx.xmlstore.references.ValueReference
 
getDistributedMap() - Method in class org.planx.xmlstore.stores.DistributedXMLStore
Returns the DistributedMap used by this DistributedXMLStore to exchange peer-to-peer information.
getDocAttributes() - Method in class org.planx.xmlstore.DocNode
 
getDocChildren() - Method in class org.planx.xmlstore.DocNode
Returns a list that contains the children of this node as DocNodes.
getEnd() - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
getHashes() - Method in class org.planx.routing.kademlia.operation.HashMessage
 
getHeight() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getHeight(RawNode) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
getId() - Method in class org.planx.routing.kademlia.Node
Returns the identifier of this node.
getIndex() - Method in class org.planx.xmlstore.DocNode
Returns the index of this node in the parent's list of children.
getIndex() - Method in class org.planx.xmlstore.references.RelativeReference
 
getInetAddress() - Method in class org.planx.routing.kademlia.Node
Returns the IP address of this node.
getKey() - Method in class org.planx.routing.kademlia.operation.DataMessage
 
getKey() - Method in class org.planx.routing.kademlia.operation.RemoveMessage
 
getKey() - Method in class org.planx.routing.kademlia.TimestampedEntry
 
getKey(Object) - Method in class org.planx.util.BijectiveMap
 
getLocalIdentifier() - Method in interface org.planx.routing.DistributedMap
Returns the Identifier associated with this DistributedMap instance.
getLocalIdentifier() - Method in class org.planx.routing.kademlia.Kademlia
 
getLocator() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getLocator() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
getLocator() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getLocator() - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
getLookupId() - Method in class org.planx.routing.kademlia.operation.LookupMessage
 
getManager() - Method in class org.planx.xmlstore.stores.LocalXMLStore
 
getMeta() - Method in interface org.planx.io.FileSystem
Returns a locator to a special block of meta data.
getMeta() - Method in class org.planx.io.LocalFileSystem
 
getMeta() - Method in class org.planx.io.MemoryFileSystem
Unsupported - returns null.
getMeta() - Method in class org.planx.io.MultiFileSystem
Unsupported - returns null.
getMeta() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
getName() - Method in interface org.planx.xmlstore.Attribute
Returns the name of the attribute.
getName() - Method in class org.planx.xmlstore.DocAttribute
 
getName() - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
getNameServer() - Method in class org.planx.xmlstore.stores.AbstractXMLStore
 
getNameServer() - Method in class org.planx.xmlstore.stores.DistributedXMLStore
Returns a GlobalNameServer that uses the same DistributedMap as this DistributedXMLStore.
getNameServer() - Method in class org.planx.xmlstore.stores.LocalXMLStore
Returns a NameServer for this store.
getNameServer() - Method in class org.planx.xmlstore.stores.RemoteXMLStore
 
getNameServer() - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
Returns a name server associated with this XML Store.
getNameServer() - Method in interface org.planx.xmlstore.XMLStore
Returns the NameServer with the largest scope associated with this XMLStore.
getNeighbourhood() - Method in class org.planx.routing.kademlia.Space
Returns all nodes in the neighbourhood of the local node.
getNodes() - Method in class org.planx.routing.kademlia.operation.NodeReplyMessage
 
getNodeValue() - Method in class org.planx.xmlstore.DocNode
 
getNodeValue() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Returns the data of this BINARY node encoded as base64.
getNodeValue() - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Returns the character data of this CHARDATA node.
getNodeValue() - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
getNodeValue() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getNodeValue() - Method in interface org.planx.xmlstore.Node
Returns the value of this Node.
getObject() - Method in class org.planx.routing.kademlia.TimestampedValue
Returns the value as an Object.
getOrigin() - Method in class org.planx.routing.kademlia.operation.OriginMessage
 
getOwner() - Method in class org.planx.xmlstore.DocAttribute
Returns the DocNode to which this attribute belongs.
getParent() - Method in class org.planx.xmlstore.DocNode
Returns the parent DocNode of this DocNode.
getParent() - Method in class org.planx.xmlstore.references.RelativeDualReference
 
getPath() - Method in class org.planx.xmlstore.DocNode
Returns an integer array containing the path from the root to this node.
getPath() - Method in class org.planx.xmlstore.references.RelativeReference
 
getPolicy() - Method in interface org.planx.xmlstore.koala.io.NodeFileSystem
Returns the IOPolicy associated with this NodeFileSystem.
getPolicy() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
getPolymorphicStreamer(Class<E>) - Static method in class org.planx.io.Streamers
Returns a PolymorphicStreamer for the specified class.
getPort() - Method in class org.planx.routing.kademlia.Node
Returns the UDP port of this node.
getRefreshList() - Method in class org.planx.routing.kademlia.Space
Returns a list containing random Identifiers in bucket ranges that needs to be refreshed.
getRoot() - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
getRoot() - Method in class org.planx.xmlstore.references.RelativeReference
 
getRootElement() - Method in class org.planx.xmlstore.DocNode
Returns the root element DocNode of the document that contains this DocNode.
getRootManager() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
getRootNode() - Method in class org.planx.xmlstore.DocNode
Returns the root node DocNode of the document that contains this DocNode.
getRoots(SourceId) - Method in class org.planx.xmlstore.koala.storage.RootManager
Returns all live roots with the specified SourceId.
getRoots() - Method in class org.planx.xmlstore.koala.storage.RootManager
 
getSharer() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
getStreamer() - Static method in class org.planx.io.Locator
Returns a Streamer capable of converting a Locator to and from byte representation.
getStreamer() - Static method in class org.planx.io.SourceId
Returns a Streamer capable of converting a SourceId to and from byte representation.
getStreamer(SizeStreamer<E>, SizeStreamer<F>) - Static method in class org.planx.util.BijectiveMap
Returns a streamer capable of writing and reading a BijectiveMap.
getStreamer(SizeStreamer<E>, SizeStreamer<F>) - Static method in class org.planx.util.MultiMap
Returns a streamer capable of writing and reading an MultiMap.
getStreamer() - Static method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
getStreamer() - Static method in class org.planx.xmlstore.koala.storage.RootManager
 
getStreamer(SegmentManager, StorageConfiguration) - Static method in class org.planx.xmlstore.koala.storage.Segment
Returns a streamer capable of writing and reading a segment including its meta data.
getStreamer() - Static method in class org.planx.xmlstore.references.LocalLocator
 
getStreamer() - Static method in class org.planx.xmlstore.references.ValueReference
 
getType() - Method in class org.planx.xmlstore.DocNode
 
getType() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getType() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
Returns ELEMENT.
getType() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
getType() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getType() - Method in interface org.planx.xmlstore.Node
Returns the node type of this Node.
getValue() - Method in class org.planx.routing.kademlia.operation.DataMessage
 
getValue() - Method in class org.planx.routing.kademlia.TimestampedEntry
 
getValue() - Method in interface org.planx.xmlstore.Attribute
Returns the value of the attribute.
getValue() - Method in class org.planx.xmlstore.DocAttribute
 
getValue() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getValue() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
getValue() - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
getValueReference() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
getValueReference() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
getValueReference() - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
getVisitToken() - Method in class org.planx.xmlstore.koala.io.RawNode
 
getVisitToken(RawNode) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
getWriteSegment() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
GlobalNameServer - Class in org.planx.xmlstore.koala.nameserver
A distributed NameServer that relies on a DistributedMap.
GlobalNameServer(DistributedMap) - Constructor for class org.planx.xmlstore.koala.nameserver.GlobalNameServer
 

H

hardAddEdge(Locator, int, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs that the child identified by (parent, childIndex) has been saved (or was already saved) with Locator childLoc.
hardAddEdge(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
hardAddEdge(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
 
hardResolve(Locator, int, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Completely resolves any indirections that may exist along the edge from (parent, childIndex) to child and returns a Locator pointing to the actual child.
hardResolve(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Returns the argument child.
hardResolve(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
If the child is in a different segment from the parent, then the method recursively retrieves the child's segment until a segment is found in which the child actually resides.
HASH_LENGTH - Static variable in class org.planx.routing.kademlia.HashCalculator
 
HashCalculator - Class in org.planx.routing.kademlia
Calculates group hashes for mappings.
HashCalculator(Node, Space, Map) - Constructor for class org.planx.routing.kademlia.HashCalculator
 
hashCode() - Method in class org.planx.io.Locator
 
hashCode() - Method in class org.planx.io.SourceId
 
hashCode() - Method in class org.planx.routing.Identifier
 
hashCode() - Method in class org.planx.routing.kademlia.Node
 
hashCode() - Method in class org.planx.util.ObjectReference
Returns the hash code of the object pointed to.
hashCode() - Method in class org.planx.xmlstore.DocAttribute
 
hashCode() - Method in class org.planx.xmlstore.koala.io.RawNode
 
hashCode() - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
hashCode() - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
 
hashCode() - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
 
hashCode() - Method in class org.planx.xmlstore.koala.nodes.DVMElementNode
 
hashCode() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
hashCode() - Method in class org.planx.xmlstore.koala.storage.Segment
Returns the hash code of this Segments SourceId.
hashCode() - Method in interface org.planx.xmlstore.Node
Recursively computes a hash code based on the node type, node value, attributes, and children.
hashCode() - Method in class org.planx.xmlstore.references.LocalLocator
 
hashCode() - Method in class org.planx.xmlstore.references.RelativeReference
 
hashCode() - Method in class org.planx.xmlstore.references.ValueReference
 
HashMessage - Class in org.planx.routing.kademlia.operation
 
HashMessage(Node, long, List<byte[]>) - Constructor for class org.planx.routing.kademlia.operation.HashMessage
 
HashMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.HashMessage
 
HashReceiver - Class in org.planx.routing.kademlia.operation
Receives a HashMessage and compares it to hashes generated locally.
HashReceiver(MessageServer, Node, Space, Map) - Constructor for class org.planx.routing.kademlia.operation.HashReceiver
 
HashRequestMessage - Class in org.planx.routing.kademlia.operation
 
HashRequestMessage(Node) - Constructor for class org.planx.routing.kademlia.operation.HashRequestMessage
 
HashRequestMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.HashRequestMessage
 
HashRequestReceiver - Class in org.planx.routing.kademlia.operation
Receives a HashRequestMessage and replies with a HashMessage containing group hashes of mappings that should both be available at the local node and the origin node.
HashRequestReceiver(MessageServer, Node, Space, Map) - Constructor for class org.planx.routing.kademlia.operation.HashRequestReceiver
 

I

id() - Method in class org.planx.io.AbstractPositionalData
 
id() - Method in class org.planx.io.ByteData
 
id() - Method in class org.planx.io.FileData
 
id() - Method in interface org.planx.io.FileSystem
Returns a SourceId identifying this FileSystem in its present state.
id() - Method in class org.planx.io.LocalFileSystem
 
id() - Method in class org.planx.io.Locator
Returns the SourceId associated with this Locator or null if none is associated.
id() - Method in class org.planx.io.MemoryFileSystem
 
id() - Method in class org.planx.io.MultiFileSystem
Returns the SourceId of the allocation file system.
id() - Method in interface org.planx.io.Positionable
Returns the current SourceId associated with the data.
id() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
id() - Method in class org.planx.xmlstore.koala.storage.Segment
Returns the SourceId of this segment.
Identifier - Class in org.planx.routing
An identifier consists of at most Identifier.IDSIZE bit and it is always positive.
Identifier() - Constructor for class org.planx.routing.Identifier
Constructs an Identifier with value 0.
Identifier(byte[]) - Constructor for class org.planx.routing.Identifier
Constructs an Identifier from the specified byte array which is interpreted as a positive integer in big-endian order (most significant byte is in the zeroth element)
Identifier(BigInteger) - Constructor for class org.planx.routing.Identifier
Constructs an Identifier from the specified BigInteger.
Identifier(DataInput) - Constructor for class org.planx.routing.Identifier
Constructs an Identifier by reading IDSIZE/8 bytes from the specified DataInput.
ids() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns a set view of all the segments' SourceIds.
IDSIZE - Static variable in class org.planx.routing.Identifier
Number of bits in an ID.
incFailCount() - Method in class org.planx.routing.kademlia.Node
Increments the failure counter and returns the new value.
incomingSet() - Method in class org.planx.xmlstore.koala.storage.Segment
Returns the incoming set of this segment.
indexOf(byte[], byte, int, int) - Static method in class org.planx.util.Array
Find the first occurrence of a value in an array starting from the offset and looking no further than offset plus the length.
indexOf(Object) - Method in class org.planx.util.UnmodifiableArrayList
 
indirections() - Method in class org.planx.xmlstore.koala.storage.Segment
 
initiateIteration() - Method in class org.planx.xmlstore.koala.storage.Sharer
 
inMemorySegments() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns the number of Segments currently in memory.
insertChild(Node, int, Node) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
insertChild(Node, int, Node) - Method in class org.planx.xmlstore.NodeFactory
The method is used for adding a child to an element node.
insertNode(Node) - Method in class org.planx.routing.kademlia.Space
Inserts the specified node into this space.
instance(String) - Static method in class org.planx.xmlstore.koala.storage.StorageManager
 
instance(String, StorageConfiguration) - Static method in class org.planx.xmlstore.koala.storage.StorageManager
 
instance() - Static method in class org.planx.xmlstore.NodeFactory
 
internal() - Method in class org.planx.util.UnmodifiableArrayList
 
InvalidSourceIdException - Exception in org.planx.io
Indicates that a SourceId is invalid.
InvalidSourceIdException(Throwable) - Constructor for exception org.planx.io.InvalidSourceIdException
 
InvalidSourceIdException(String) - Constructor for exception org.planx.io.InvalidSourceIdException
 
InvalidSourceIdException(String, Throwable) - Constructor for exception org.planx.io.InvalidSourceIdException
 
IOPolicy<R> - Interface in org.planx.xmlstore.koala.io
An IOPolicy handles policies related to converting nodes to and from byte representation as well as discrimination.
isContained(Locator) - Method in class org.planx.io.Bound
 
isContained(Bound) - Method in class org.planx.io.Bound
 
isContained(Locator) - Method in interface org.planx.io.FileSystem
Returns true if the specified Locator originates from this FileSystem and is valid.
isContained(Locator) - Method in class org.planx.io.LocalFileSystem
 
isContained(Locator) - Method in class org.planx.io.MemoryFileSystem
 
isContained(Locator) - Method in class org.planx.io.MultiFileSystem
Returns true if and only if the specified locator is contained in any of the file systems associated with this MultiFileSystem.
isContained(Locator) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
isDeleted() - Method in class org.planx.xmlstore.koala.storage.Segment
 
isDirty(int) - Method in class org.planx.xmlstore.koala.io.RawNode
 
isDirty(int) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
isEmpty() - Method in class org.planx.util.SoftValueMap
 
isEmpty() - Method in class org.planx.util.WeakHashSet
 
isEmpty() - Method in class org.planx.util.WeakValueMap
 
isEmpty() - Method in class org.planx.xmlstore.koala.storage.Segment
 
isModified() - Method in class org.planx.io.AbstractPositionalData
 
isModified() - Method in class org.planx.io.ByteData
 
isModified() - Method in interface org.planx.io.FileSystem
Returns true if this file system has been modified since it was created or since the last call to FileSystem.clearModified().
isModified() - Method in class org.planx.io.LocalFileSystem
 
isModified() - Method in class org.planx.io.MemoryFileSystem
 
isModified() - Method in class org.planx.io.MultiFileSystem
Returns true if any of the file systems are modified.
isModified() - Method in class org.planx.util.BijectiveMap
 
isModified() - Method in class org.planx.util.MultiMap
 
isModified() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
isModified() - Method in class org.planx.xmlstore.koala.storage.Segment
 
isMutable() - Method in class org.planx.xmlstore.DocNode
 
isMutable() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
Returns false.
isMutable() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
isMutable() - Method in interface org.planx.xmlstore.Node
Returns true if this Node is mutable, false otherwise.
isOutside(Locator, int, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Returns true if the child with the specified Locator should be considered outside of the discrimination area, and false if the node is inside.
isOutside(RawNode, int) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
Calls IOPolicy.isOutside(org.planx.io.Locator, int, org.planx.io.Locator).
isOutside(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Returns true if the node is not contained in the file system provided in the constructor.
isOutside(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
All nodes contained in the super-segment defined by the segments provided in the constructor are inside, and all other nodes are outside.
isReadOnly() - Method in class org.planx.io.AbstractPositionalData
 
isReadOnly() - Method in interface org.planx.io.FileSystem
Returns true if this file system is read-only.
isReadOnly() - Method in class org.planx.io.LocalFileSystem
 
isReadOnly() - Method in class org.planx.io.MemoryFileSystem
 
isReadOnly() - Method in class org.planx.io.MultiFileSystem
Returns true only if all the file systems are read-only.
isReadOnly() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
isReadOnly() - Method in class org.planx.xmlstore.koala.storage.Segment
 
isRoot() - Method in class org.planx.xmlstore.references.RelativeReference
 
isShared() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
isShared() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
isShared() - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
isSharerEnabled - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
Default is true.
isVirtual() - Method in class org.planx.xmlstore.koala.io.RawNode
 
isVirtual() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
iterator() - Method in class org.planx.util.WeakHashSet
 

K

K - Variable in class org.planx.routing.kademlia.Configuration
Bucket size.
Kademlia - Class in org.planx.routing.kademlia
Maps keys to values in a distributed setting using the Kademlia protocol.
Kademlia(Identifier, int) - Constructor for class org.planx.routing.kademlia.Kademlia
Creates a Kademlia DistributedMap with the specified identifier and no persistence.
Kademlia(Identifier, int, Configuration) - Constructor for class org.planx.routing.kademlia.Kademlia
Creates a Kademlia DistributedMap with the specified identifier and no persistence.
Kademlia(String, int, int, InetSocketAddress) - Constructor for class org.planx.routing.kademlia.Kademlia
Creates a Kademlia DistributedMap using the specified name as filename base.
Kademlia(String, int, int, InetSocketAddress, Configuration) - Constructor for class org.planx.routing.kademlia.Kademlia
Creates a Kademlia DistributedMap using the specified name as filename base.
Kademlia(String, Identifier, int, int, InetSocketAddress, Configuration) - Constructor for class org.planx.routing.kademlia.Kademlia
Creates a Kademlia DistributedMap using the specified name as filename base.
KademliaNeighbourhoodListener - Interface in org.planx.routing.kademlia
Listens for newly arrived nodes in the neighbourhood of the local node.
keySet() - Method in class org.planx.util.MultiMap
Returns the keys of this MultiMap.
keySet() - Method in class org.planx.util.PersistentMap
 

L

lastSeen() - Method in class org.planx.routing.kademlia.Node
Returns the time this node was last seen.
LASTSEEN_COMPARATOR - Static variable in class org.planx.routing.kademlia.Node
 
length() - Method in class org.planx.io.Bound
Returns the length of the block specified by this Bound.
length() - Method in class org.planx.xmlstore.DocAttribute
 
length() - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
LENGTH - Static variable in class org.planx.xmlstore.references.ValueReference
 
load(K) - Method in interface org.planx.io.Loader
 
load(R) - Method in class org.planx.xmlstore.koala.io.CacheNodeFileSystem
 
load(Locator, RelativeDualReference<Locator, R>) - Method in class org.planx.xmlstore.koala.io.CacheNodeFileSystem
 
load(R) - Method in interface org.planx.xmlstore.koala.io.NodeFileSystem
Loads a node from the file system.
load(Locator, RelativeDualReference<Locator, R>) - Method in interface org.planx.xmlstore.koala.io.NodeFileSystem
Loads a node from the file system.
load(R) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
load(Locator, RelativeDualReference<Locator, R>) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
load(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Loads a node.
load(RelativeDualReference<Locator, LocalLocator>) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Attempts to load directly using the Locator of the RelativeDualReference and if the segment's state has changed instead loads using the relative reference.
load(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.StorageManager
Loads a node with the specified LocalLocator.
load(RelativeDualReference<Locator, LocalLocator>) - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
load(R) - Method in class org.planx.xmlstore.stores.AbstractXMLStore
 
load(ValueReference) - Method in class org.planx.xmlstore.stores.DistributedXMLStore
If the Reference is not known in the underlying XMLStore it is looked up in the network and loaded from another peer if it exists.
load(LocalLocator) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Only accepts LocalLocators.
load(R) - Method in class org.planx.xmlstore.stores.OptimisticReadXMLStore
 
load(ValueReference) - Method in class org.planx.xmlstore.stores.RemoteXMLStore
 
load(ValueReference) - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
load(R) - Method in interface org.planx.xmlstore.XMLStore
Loads XML data identified by a reference.
LoadableNodeProxy<R> - Class in org.planx.xmlstore.koala.nodes
A proxied node which is loaded when needed.
LoadableNodeProxy(Loader<R, SystemNode>, R) - Constructor for class org.planx.xmlstore.koala.nodes.LoadableNodeProxy
 
loadChild(Locator, int, Locator, RelativeDualReference<Locator, R>) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Loads a child node with the specified Locator.
loadChild(Locator, int, Locator, RelativeDualReference<Locator, Locator>) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does not use relative references and creates a proxy which will load the child directly from the file system provided in the constructor when needed.
loadChild(Locator, int, Locator, RelativeDualReference<Locator, LocalLocator>) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Always proxies child nodes and loads them relative to a root node when needed.
Loader<K,V> - Interface in org.planx.io
 
localExecutor() - Static method in class org.planx.util.Concurrency
Returns a shared ExecutorService for local XMLStore clients.
LocalFileSystem - Class in org.planx.io
An implementation of FileSystem that uses an on-disk file.
LocalFileSystem(String) - Constructor for class org.planx.io.LocalFileSystem
Creates a new file system with the specified name or opens an already existing one.
LocalLocator - Class in org.planx.xmlstore.references
An updatable Reference having a Locator to a FileSystem location.
LocalLocator(Locator) - Constructor for class org.planx.xmlstore.references.LocalLocator
 
LocalNameServer - Class in org.planx.xmlstore.koala.nameserver
A NameServer for local use only.
LocalNameServer(LocalXMLStore) - Constructor for class org.planx.xmlstore.koala.nameserver.LocalNameServer
 
LocalXMLStore - Class in org.planx.xmlstore.stores
A local XMLStore that only operates on location dependent References, that is, LocalLocators.
LocalXMLStore(String) - Constructor for class org.planx.xmlstore.stores.LocalXMLStore
Creates a new LocalXMLStore with the specified on-disk name.
LocalXMLStore(String, StorageConfiguration) - Constructor for class org.planx.xmlstore.stores.LocalXMLStore
Creates a new LocalXMLStore with the specified on-disk name.
Locatable - Interface in org.planx.io
 
location() - Method in class org.planx.io.AbstractPositionalData
 
location() - Method in class org.planx.io.ByteData
 
location() - Method in class org.planx.io.FileData
 
location() - Method in interface org.planx.io.Locatable
 
location() - Method in class org.planx.io.Locator
Returns this Locator.
location() - Method in interface org.planx.io.Positionable
Returns the current position in the data as a Locator.
location(SystemNode) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
If the node is already saved, returns a Locator to its position.
location(SystemNode) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Returns null (forces node to always be saved).
location(SystemNode) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
 
location() - Method in class org.planx.xmlstore.references.LocalLocator
 
Locator - Class in org.planx.io
A Locator consists of a position and a SourceId.
Locator(long, SourceId) - Constructor for class org.planx.io.Locator
 
Locator.CompactStreamer - Class in org.planx.io
A Streamer capable of converting a Locator to and from byte representation.
Locator.CompactStreamer() - Constructor for class org.planx.io.Locator.CompactStreamer
 
Locator.CompactStreamer(SourceId) - Constructor for class org.planx.io.Locator.CompactStreamer
 
LocatorListener - Interface in org.planx.xmlstore.references
Listens for locator events such as the relocation of data pointed to by a LocalLocator.
locatorMoved(LocalLocator, LocalLocator) - Method in interface org.planx.xmlstore.references.LocatorListener
Indicates that the data pointed to by oldLoc has been relocated to newLoc.
logarithmicHashes(Node, long) - Method in class org.planx.routing.kademlia.HashCalculator
Calculates bundled hashes of the set of keys which is the intersection of keys that both the local node and the specified node are responsible for.
longStreamer() - Static method in class org.planx.io.Streamers
 
lookup(Locator) - Method in class org.planx.io.MultiFileSystem
Returns the FileSystem containing the specified locator or returns null if none of the file systems contains the locator.
lookup(String) - Method in class org.planx.xmlstore.koala.nameserver.GlobalNameServer
 
lookup(String) - Method in class org.planx.xmlstore.koala.nameserver.LocalNameServer
 
lookup(Locator) - Method in class org.planx.xmlstore.koala.storage.RootManager
Returns the canonical LocalLocator for the specified Locator or null if the locator is not a root.
lookup(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
 
lookup(String) - Method in interface org.planx.xmlstore.NameServer
Lookup the name in the name server.
LookupMessage - Class in org.planx.routing.kademlia.operation
 
LookupMessage(Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.LookupMessage
 
LookupMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.LookupMessage
 

M

mappingsBetween(Node, long, long) - Method in class org.planx.routing.kademlia.HashCalculator
Returns the subset of mappings in the local map with timestamps between begin (including) and end (not including) that the specified node is also responsible for.
mapStreamer(SizeStreamer<K>, SizeStreamer<V>, Class<M>) - Static method in class org.planx.io.Streamers
 
MAX_BYTE_SIZE - Static variable in class org.planx.io.Bound
 
MAX_BYTE_SIZE - Static variable in class org.planx.io.SourceId
 
MemoryFileSystem - Class in org.planx.io
An implementation of FileSystem that uses an in-memory byte array to store data.
MemoryFileSystem() - Constructor for class org.planx.io.MemoryFileSystem
 
MemoryFileSystem(SourceId) - Constructor for class org.planx.io.MemoryFileSystem
 
MemoryFileSystem(int) - Constructor for class org.planx.io.MemoryFileSystem
 
MemoryFileSystem(int, SourceId) - Constructor for class org.planx.io.MemoryFileSystem
 
MemoryNodeFileSystem - Class in org.planx.xmlstore.koala.io
A convenience NodeFileSystem that uses a MemoryFileSystem and a SimpleIOPolicy.
MemoryNodeFileSystem() - Constructor for class org.planx.xmlstore.koala.io.MemoryNodeFileSystem
 
Message - Interface in org.planx.routing.messaging
 
MessageFactory - Interface in org.planx.routing.messaging
Creates Message and Receiver objects based on message code types.
MessageFactoryImpl - Class in org.planx.routing.kademlia.operation
Essentially this class translates numbers into classes.
MessageFactoryImpl(Map<Identifier, TimestampedValue>, Node, Space) - Constructor for class org.planx.routing.kademlia.operation.MessageFactoryImpl
 
MessageServer - Class in org.planx.routing.messaging
Listens for incoming UDP messages and provides a framework for sending messages and responding to received messages.
MessageServer(int, MessageFactory, long) - Constructor for class org.planx.routing.messaging.MessageServer
Constructs a MessageServer listening on the specified UDP port using the specified MessageFactory for interpreting incoming messages.
move(ObjectReference<E>) - Method in class org.planx.util.ObjectReference
Lets this ObjectReference point to the same actual object as the specified ObjectReference.
move(LocalLocator, LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
Informs the RootManager that two existing roots are equivalent and will be merged.
move(Locator, Locator) - Method in class org.planx.xmlstore.koala.storage.RootManager
 
moveEdge(Locator, int, Locator, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs that a child pointer has been rewritten.
moveEdge(Locator, int, Locator, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
moveEdge(Locator, int, Locator, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
 
moveGlobalRoot(Locator, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs of the moving/merging of a global root, that is, a root referenced by an application.
moveGlobalRoot(Locator, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
moveGlobalRoot(Locator, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Informs the RootManager.
moveLocalRoot(Locator, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs of the moving/merging of a local root, that is, a root referenced from outside the discrimination area.
moveLocalRoot(Locator, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
moveLocalRoot(Locator, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Creates an indirection in the old segment's incoming set to point to the new child and insert an incoming edge in the new segment's incoming set.
MultiFileSystem - Class in org.planx.io
Combines several FileSystems into one providing transparent access to all of them.
MultiFileSystem() - Constructor for class org.planx.io.MultiFileSystem
Creates an empty MultiFileSystem.
MultiFileSystem(FileSystem) - Constructor for class org.planx.io.MultiFileSystem
Creates a MultiFileSystem using the specified file system for allocation of new data.
MultiMap<K,V> - Class in org.planx.util
A set of mappings from one key to multiple values.
MultiMap() - Constructor for class org.planx.util.MultiMap
 

N

NameAlreadyBoundException - Exception in org.planx.xmlstore
 
NameAlreadyBoundException(Throwable) - Constructor for exception org.planx.xmlstore.NameAlreadyBoundException
 
NameAlreadyBoundException(String) - Constructor for exception org.planx.xmlstore.NameAlreadyBoundException
 
NameAlreadyBoundException(String, Throwable) - Constructor for exception org.planx.xmlstore.NameAlreadyBoundException
 
NameAlreadyBoundException(String, Reference) - Constructor for exception org.planx.xmlstore.NameAlreadyBoundException
 
NameServer<R extends Reference> - Interface in org.planx.xmlstore
 
NameServerException - Exception in org.planx.xmlstore
 
NameServerException(Throwable) - Constructor for exception org.planx.xmlstore.NameServerException
 
NameServerException(String) - Constructor for exception org.planx.xmlstore.NameServerException
 
NameServerException(String, Throwable) - Constructor for exception org.planx.xmlstore.NameServerException
 
NeighbourhoodListener - Interface in org.planx.routing
Listens for newly arrived nodes in the neighbourhood of the local peer.
networkExecutor() - Static method in class org.planx.util.Concurrency
Returns a shared ExecutorService for remote XMLStore clients.
NetworkListener - Class in org.planx.xmlstore.stores
A NetworkListener exposes the functionality of an underlying XMLStore to networked clients.
NetworkListener(XMLStore<ValueReference>, int) - Constructor for class org.planx.xmlstore.stores.NetworkListener
Create a Network Stub XML Store which listens on the specified port and handles requests using the specified underlying XML Store.
NetworkListener(XMLStore<ValueReference>, int, NameServer<ValueReference>) - Constructor for class org.planx.xmlstore.stores.NetworkListener
Create a Network Stub XML Store which listens on the specified port and handles requests using the specified XML Store and name server.
NetworkProtocol - Class in org.planx.xmlstore.stores
An XML Store can be made available over the network by using a DistributedXMLStore or a NetworkListener.
NetworkProtocolException - Exception in org.planx.xmlstore.stores
 
NetworkProtocolException() - Constructor for exception org.planx.xmlstore.stores.NetworkProtocolException
 
NetworkProtocolException(String) - Constructor for exception org.planx.xmlstore.stores.NetworkProtocolException
 
NetworkProtocolException(Throwable) - Constructor for exception org.planx.xmlstore.stores.NetworkProtocolException
 
NetworkProtocolException(String, Throwable) - Constructor for exception org.planx.xmlstore.stores.NetworkProtocolException
 
nextSibling() - Method in class org.planx.xmlstore.DocNode
Returns the sibling node immediately following this node.
Node - Class in org.planx.routing.kademlia
Represents a node and contains information about the IP address, UDP port, and ID of the node.
Node(InetAddress, int, Identifier) - Constructor for class org.planx.routing.kademlia.Node
Constructs a node with the specified IP address, UDP port, and identifier.
Node(InetAddress, int, int, Identifier) - Constructor for class org.planx.routing.kademlia.Node
 
Node(DataInput) - Constructor for class org.planx.routing.kademlia.Node
Constructs a node by reading the state from a DataInput.
Node - Interface in org.planx.xmlstore
A Node.
Node.DistanceComparator - Class in org.planx.routing.kademlia
A DistanceComparator is capable of comparing Node objects according to closeness to a predetermined identifier using the XOR metric.
Node.DistanceComparator(Identifier) - Constructor for class org.planx.routing.kademlia.Node.DistanceComparator
The identifier relative to which the distance should be measured.
Node.FirstSeenComparator - Class in org.planx.routing.kademlia
A FirstSeenComparator is capable of comparing Node objects according to time first seen.
Node.FirstSeenComparator() - Constructor for class org.planx.routing.kademlia.Node.FirstSeenComparator
 
Node.LastSeenComparator - Class in org.planx.routing.kademlia
A LastSeenComparator is capable of comparing Node objects according to time last seen.
Node.LastSeenComparator() - Constructor for class org.planx.routing.kademlia.Node.LastSeenComparator
 
nodeArrived(Node) - Method in interface org.planx.routing.kademlia.KademliaNeighbourhoodListener
A new node has been inserted in a bucket in the neighbourhood.
NodeConverter<R> - Class in org.planx.xmlstore.koala.io
A NodeConverter is capable of reading and writing SystemNodes to and from byte representation.
NodeConverter(IOPolicy<R>) - Constructor for class org.planx.xmlstore.koala.io.NodeConverter
 
nodeCount() - Method in class org.planx.routing.kademlia.Space
Returns the number of nodes in the range covered by this space.
nodeCreated(SystemNode, int) - Method in interface org.planx.xmlstore.koala.nodes.NodeListener
 
NodeFactory - Class in org.planx.xmlstore
 
NodeFileSystem<R extends Locatable> - Interface in org.planx.xmlstore.koala.io
A FileSystem that has an associated IOPolicy and provides save and load methods for nodes.
NodeFileSystemImpl<R extends Locatable> - Class in org.planx.xmlstore.koala.io
A NodeFileSystem that decorates an existing FileSystem and associates an IOPolicy.
NodeFileSystemImpl(FileSystem, IOPolicy<R>) - Constructor for class org.planx.xmlstore.koala.io.NodeFileSystemImpl
The NodeFileSystem will use a NodeConverter for converting nodes to and from byte representation.
NodeListener - Interface in org.planx.xmlstore.koala.nodes
 
NodeLookupMessage - Class in org.planx.routing.kademlia.operation
 
NodeLookupMessage(Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.NodeLookupMessage
 
NodeLookupMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.NodeLookupMessage
 
NodeLookupOperation - Class in org.planx.routing.kademlia.operation
Finds the K closest nodes to a specified identifier.
NodeLookupOperation(Configuration, MessageServer, Space, Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.NodeLookupOperation
Create a NodeLookupOperation for the specified id.
NodeLookupReceiver - Class in org.planx.routing.kademlia.operation
Handles incoming LookupMessages by sending a NodeReplyMessage containing the K closest nodes to the requested identifier.
NodeLookupReceiver(MessageServer, Node, Space) - Constructor for class org.planx.routing.kademlia.operation.NodeLookupReceiver
 
NodeProxy - Class in org.planx.xmlstore.koala.nodes
 
NodeReplyMessage - Class in org.planx.routing.kademlia.operation
 
NodeReplyMessage(Node, List<Node>) - Constructor for class org.planx.routing.kademlia.operation.NodeReplyMessage
 
NodeReplyMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.NodeReplyMessage
 
nodeSaved(SystemNode, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs that a node has been saved at the specified location.
nodeSaved(SystemNode, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
nodeSaved(SystemNode, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Sets the node's associated Locator to loc.

O

ObjectReference<E> - Class in org.planx.util
An ObjectReference points to an object and can be updated behind-the-scenes to point to another object without the user noticing.
ObjectReference(E) - Constructor for class org.planx.util.ObjectReference
Creates a new ObjectReference pointing to the specified object.
Operation<E> - Interface in org.planx.routing.kademlia.operation
User initiated operations should be subclasses of this class.
OPERATION_TIMEOUT - Variable in class org.planx.routing.kademlia.Configuration
Maximum number of milliseconds for performing an operation.
OptimisticReadXMLStore<R extends Reference> - Class in org.planx.xmlstore.stores
Optimistically reads nodes from an underlying XMLStore, returning them before they are available.
OptimisticReadXMLStore(XMLStore<R>) - Constructor for class org.planx.xmlstore.stores.OptimisticReadXMLStore
 
org.planx.io - package org.planx.io
Generic I/O utilities.
org.planx.routing - package org.planx.routing
Peer-to-peer routing.
org.planx.routing.kademlia - package org.planx.routing.kademlia
Kademlia implementation of a peer-to-peer routing module.
org.planx.routing.kademlia.operation - package org.planx.routing.kademlia.operation
Kademlia routing operations.
org.planx.routing.messaging - package org.planx.routing.messaging
A framework for sending UDP messages and asynchronously responding to received messages.
org.planx.util - package org.planx.util
Generic utilities.
org.planx.xmlstore - package org.planx.xmlstore
XMLStore is a peer-to-peer persistence layer with a value-oriented interface for storing and retrieving semi-structured data.
org.planx.xmlstore.input - package org.planx.xmlstore.input
Utilities for creating in-memory trees from XML files and other input sources.
org.planx.xmlstore.koala.io - package org.planx.xmlstore.koala.io
Tools for converting nodes to and from byte representation as well as discrimination of nodes in byte representation.
org.planx.xmlstore.koala.nameserver - package org.planx.xmlstore.koala.nameserver
NameServer implementations.
org.planx.xmlstore.koala.nodes - package org.planx.xmlstore.koala.nodes
Node implementations as well as utilities for converting these nodes to and from byte representation.
org.planx.xmlstore.koala.storage - package org.planx.xmlstore.koala.storage
Implementation of a segmented storage system with asynchronous sharing and garbage collection.
org.planx.xmlstore.output - package org.planx.xmlstore.output
Utilities for writing XML output from in-memory trees.
org.planx.xmlstore.references - package org.planx.xmlstore.references
Reference implementations.
org.planx.xmlstore.stores - package org.planx.xmlstore.stores
Access to XMLStore store implementations and decorators.
OriginMessage - Class in org.planx.routing.kademlia.operation
A message containing the origin node.
OriginMessage(Node) - Constructor for class org.planx.routing.kademlia.operation.OriginMessage
 
OriginMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.OriginMessage
 
OriginReceiver - Class in org.planx.routing.kademlia.operation
Handles updating of the local space when messages are received and provides easy implementation of more specific receivers.
OriginReceiver(MessageServer, Node, Space) - Constructor for class org.planx.routing.kademlia.operation.OriginReceiver
 
OutOfBoundsException - Exception in org.planx.io
Indicates that a Locator is out of bounds.
OutOfBoundsException(Throwable) - Constructor for exception org.planx.io.OutOfBoundsException
 
OutOfBoundsException(String) - Constructor for exception org.planx.io.OutOfBoundsException
 
OutOfBoundsException(String, Throwable) - Constructor for exception org.planx.io.OutOfBoundsException
 
output(Node) - Method in class org.planx.xmlstore.output.SAXOutputter
 
output(Node, Writer) - Method in class org.planx.xmlstore.output.XMLOutputter
Output a node as an XML document.
output(Node, OutputStream) - Method in class org.planx.xmlstore.output.XMLOutputter
Output a node as an XML document.

P

parseFile(String) - Static method in class org.planx.xmlstore.input.DOMUtil
 
parseSource(InputSource) - Static method in class org.planx.xmlstore.input.DOMUtil
 
peerArrived(InetSocketAddress) - Method in interface org.planx.routing.NeighbourhoodListener
A new peer has arrived in the neighbourhood of the local peer.
persist(Segment) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Saves the segment to persistent storage adding the segment to the segments managed by this SegmentManager.
persistedSegments() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns the number of Segments currently on disk.
PersistentMap<K,V> - Class in org.planx.util
 
PersistentMap(String, Streamer<K>, Streamer<V>) - Constructor for class org.planx.util.PersistentMap
 
PersistentMap(String, Streamer<K>, Streamer<V>, boolean) - Constructor for class org.planx.util.PersistentMap
If isSet is true the Map will ignore values (saves space on disk).
PolicyFactory - Class in org.planx.xmlstore.koala.storage
A factory for creating policy instances.
PolicyFactory() - Constructor for class org.planx.xmlstore.koala.storage.PolicyFactory
 
policyFactory - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
Default is PolicyFactory.
PolymorphicStreamer<T> - Class in org.planx.io
A polymorphic Streamer that can handle multiple datatypes.
PolymorphicStreamer() - Constructor for class org.planx.io.PolymorphicStreamer
 
position() - Method in class org.planx.io.AbstractPositionalData
 
position() - Method in class org.planx.io.ByteData
 
position() - Method in class org.planx.io.FileData
 
position() - Method in class org.planx.io.Locator
Returns the position of this locator.
position() - Method in interface org.planx.io.Positionable
Returns the current position in the data as an long.
Positionable - Interface in org.planx.io
A data source that is positionable using longs or Locators and has an associated SourceId.
PositionalData - Interface in org.planx.io
A Positionable data source which can both be read and written.
PositionalDataInput - Interface in org.planx.io
A Positionable DataInput.
PositionalDataOutput - Interface in org.planx.io
A Positionable DataOutput.
previousSibling() - Method in class org.planx.xmlstore.DocNode
Returns the sibling node immediately preceding this node.
PROTOCOL_VERSION - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
put(Identifier, Serializable) - Method in interface org.planx.routing.DistributedMap
Associates the specified value with the specified key.
put(Identifier, Serializable) - Method in class org.planx.routing.kademlia.Kademlia
Associates the specified value with the specified key.
put(K, V) - Method in class org.planx.util.BijectiveMap
 
put(K, V) - Method in class org.planx.util.MultiMap
Inserts a mapping.
put(K, V) - Method in class org.planx.util.PersistentMap
 
put(K, V) - Method in class org.planx.util.SoftValueMap
 
put(K, V) - Method in class org.planx.util.WeakValueMap
 

R

randomIdentifier() - Static method in class org.planx.routing.Identifier
Returns a random Identifer.
RawNode - Class in org.planx.xmlstore.koala.io
A view of a node in byte representation.
RawNodeCompactor<R extends Locatable> - Class in org.planx.xmlstore.koala.io
A compactor/sharer of nodes in binary representation.
RawNodeCompactor(NodeFileSystem<R>) - Constructor for class org.planx.xmlstore.koala.io.RawNodeCompactor
 
RawNodeDiscriminator - Class in org.planx.xmlstore.koala.io
A Discriminator of nodes in byte representation.
RawNodeDiscriminator() - Constructor for class org.planx.xmlstore.koala.io.RawNodeDiscriminator
 
RawNodeDiscriminator(Memory) - Constructor for class org.planx.xmlstore.koala.io.RawNodeDiscriminator
 
RawNodeNavigator<R extends Locatable> - Class in org.planx.xmlstore.koala.io
Handles navigation of nodes.
RawNodeNavigator(NodeFileSystem<R>) - Constructor for class org.planx.xmlstore.koala.io.RawNodeNavigator
 
RCSIZE - Variable in class org.planx.routing.kademlia.Configuration
Size of replacement cache.
readBoolean() - Method in class org.planx.io.AbstractPositionalData
 
readByte() - Method in class org.planx.io.AbstractPositionalData
 
readChar() - Method in class org.planx.io.AbstractPositionalData
 
readChildLocators(PositionalDataInput) - Static method in class org.planx.xmlstore.koala.io.NodeConverter
 
readCompactInt(DataInput) - Static method in class org.planx.io.Streamers
Reads a variable sized int written by the Streamers.writeCompactInt(java.io.DataOutput, int) method.
readCompactLong(DataInput) - Static method in class org.planx.io.Streamers
Reads a variable sized long written by the Streamers.writeCompactLong(java.io.DataOutput, long) method.
readDouble() - Method in class org.planx.io.AbstractPositionalData
 
readFloat() - Method in class org.planx.io.AbstractPositionalData
 
readFully(byte[]) - Method in class org.planx.io.AbstractPositionalData
 
readFully(byte[], int, int) - Method in class org.planx.io.AbstractPositionalData
 
readInt() - Method in class org.planx.io.AbstractPositionalData
 
readInto(DataOutput, long) - Method in class org.planx.io.AbstractPositionalData
 
readInto(DataOutput, long) - Method in class org.planx.io.ByteData
 
readInto(DataOutput, long) - Method in class org.planx.io.FileData
 
readInto(DataOutput, long) - Method in interface org.planx.io.PositionalDataInput
Writes to the output length bytes from the input.
readLine() - Method in class org.planx.io.AbstractPositionalData
 
readList(DataInput, Streamer<E>) - Static method in class org.planx.io.Streamers
Reads an immutable List of objects, where the specified Streamer is capable of reading each object in the list.
readLong() - Method in class org.planx.io.AbstractPositionalData
 
readNode(PositionalDataInput) - Method in class org.planx.xmlstore.koala.io.NodeConverter
 
readNode(PositionalDataInput, RelativeDualReference<Locator, R>) - Method in class org.planx.xmlstore.koala.io.NodeConverter
Reads a node from the input and resolves and updates child pointers in the byte representation if the argument is also an instance of PositionalDataOutput.
readPosArray(DataInput) - Static method in class org.planx.io.Streamers
Reads data written by Streamers.writePosArray(java.io.DataOutput, int[]).
readShort() - Method in class org.planx.io.AbstractPositionalData
 
readUnsignedByte() - Method in class org.planx.io.AbstractPositionalData
 
readUnsignedShort() - Method in class org.planx.io.AbstractPositionalData
 
readUTF() - Method in class org.planx.io.AbstractPositionalData
 
readUTF(DataInput) - Static method in class org.planx.io.Streamers
Reads a String written by Streamers.writeUTF(DataOutput,String).
readUTF(DataInput, int) - Static method in class org.planx.io.Streamers
Reads a String written by Streamers.writeUTF(DataOutput,String,int).
rebind(String, ValueReference, ValueReference) - Method in class org.planx.xmlstore.koala.nameserver.GlobalNameServer
 
rebind(String, LocalLocator, LocalLocator) - Method in class org.planx.xmlstore.koala.nameserver.LocalNameServer
 
rebind(String, R, R) - Method in interface org.planx.xmlstore.NameServer
Rebind the name to the value reference in the name server if the name is currently bound to the specified value reference.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.AbstractNodeLookupOperation
Receives an incoming NodeReplyMessage.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.ConnectOperation
Receives an AcknowledgeMessage from the boot strap node.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.ConnectReceiver
Responds to a ConnectMessage by sending a ConnectReplyMessage.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.DataLookupOperation
Once a DataMessage is received the algorithm terminates.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.DataLookupReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.HashReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.HashRequestReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.NodeLookupReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.OriginReceiver
Updates the local space by inserting the origin node.
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.RemoveReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.StoreReceiver
 
receive(Message, int) - Method in class org.planx.routing.kademlia.operation.StoreRequestReceiver
 
receive(Message, int) - Method in interface org.planx.routing.messaging.Receiver
Message is received with communication identifier comm.
Receiver - Interface in org.planx.routing.messaging
A Receiver waits for incoming messages and performs some action if various events occur.
Reference - Interface in org.planx.xmlstore
A Reference that can be used to load a Node from an XMLStore.
reference(Node) - Static method in class org.planx.xmlstore.references.ValueReference
Creates a ValueReference by computing a content hash of the tree rooted at the specified node.
refreshAfter() - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Should refresh incoming and outgoing edges if necessary.
refreshAfter() - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
refreshAfter() - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
 
refreshBefore() - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Should refresh incoming and outgoing edges if necessary.
refreshBefore() - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
refreshBefore() - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Removes all incoming edges in the super-segment that are known to be dead.
RefreshOperation - Class in org.planx.routing.kademlia.operation
Refreshes all buckets.
RefreshOperation(Configuration, MessageServer, Space, Node) - Constructor for class org.planx.routing.kademlia.operation.RefreshOperation
 
register(Segment) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
relations() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
RelativeDualReference<D,R> - Class in org.planx.xmlstore.references
 
RelativeDualReference(D, R) - Constructor for class org.planx.xmlstore.references.RelativeDualReference
 
RelativeDualReference(D, R, int) - Constructor for class org.planx.xmlstore.references.RelativeDualReference
 
RelativeDualReference(D, RelativeDualReference<D, R>, int) - Constructor for class org.planx.xmlstore.references.RelativeDualReference
 
RelativeReference<R> - Class in org.planx.xmlstore.references
A RelativeReference consists of a Reference and a path.
RelativeReference(R) - Constructor for class org.planx.xmlstore.references.RelativeReference
 
RelativeReference(R, int) - Constructor for class org.planx.xmlstore.references.RelativeReference
 
RelativeReference(RelativeReference<R>, int) - Constructor for class org.planx.xmlstore.references.RelativeReference
 
release(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
Releases a root that was previously retained.
release(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Releases a root that was previously retained.
release(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.StorageManager
Releases a root that was previously retained.
release(LocalLocator) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Informs the XMLStore that the data referenced by the specified Reference is no longer needed.
release(ValueReference) - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
RemoteXMLStore - Class in org.planx.xmlstore.stores
A direct connection to a remote XMLStore peer.
RemoteXMLStore(String, int) - Constructor for class org.planx.xmlstore.stores.RemoteXMLStore
 
RemoteXMLStore(InetSocketAddress) - Constructor for class org.planx.xmlstore.stores.RemoteXMLStore
 
RemoteXMLStore(InetAddress, int) - Constructor for class org.planx.xmlstore.stores.RemoteXMLStore
 
remove(Identifier) - Method in interface org.planx.routing.DistributedMap
Removes the mapping with the specified key from this map (optional operation).
remove(Identifier) - Method in class org.planx.routing.kademlia.Kademlia
Removes the mapping with the specified key.
remove(Object) - Method in class org.planx.util.BijectiveMap
 
remove(Object, Object) - Method in class org.planx.util.MultiMap
Removes a mapping.
remove(Object) - Method in class org.planx.util.SoftValueMap
 
remove(Object) - Method in class org.planx.util.WeakHashSet
 
remove(Object) - Method in class org.planx.util.WeakValueMap
 
removeChild(Node, int) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
removeChild(Node, int) - Method in class org.planx.xmlstore.NodeFactory
The method is used for removing a child from an element node.
removeEmptyTextNodes(Node) - Static method in class org.planx.xmlstore.input.DOMUtil
 
removeFileSystem(FileSystem) - Method in class org.planx.io.MultiFileSystem
Removes the specified file system from this MultiFileSystem.
removeKey(Object) - Method in class org.planx.util.MultiMap
Removes all mappings with the specified key.
RemoveMessage - Class in org.planx.routing.kademlia.operation
 
RemoveMessage(Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.RemoveMessage
 
RemoveMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.RemoveMessage
 
removeNeighbourhoodListener(NeighbourhoodListener) - Method in interface org.planx.routing.DistributedMap
Removes a NeighbourhoodListener.
removeNeighbourhoodListener(NeighbourhoodListener) - Method in class org.planx.routing.kademlia.Kademlia
 
removeNeighbourhoodListener(NeighbourhoodListener) - Method in class org.planx.routing.kademlia.Space
 
removeNode(Node) - Method in class org.planx.routing.kademlia.Space
Marks a node as unresponsive and removes it from the tree of spaces rooted at this space if it has been marked in this way STALE times.
RemoveOperation - Class in org.planx.routing.kademlia.operation
Removes the mapping at the K closest nodes to the key of the mapping.
RemoveOperation(Configuration, MessageServer, Space, Map, Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.RemoveOperation
 
RemoveReceiver - Class in org.planx.routing.kademlia.operation
Handles incoming remove messages by removing the mapping with the specified key from the local map.
RemoveReceiver(MessageServer, Node, Space, Map) - Constructor for class org.planx.routing.kademlia.operation.RemoveReceiver
 
removeReferenceListener(LocatorListener) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Removes the specified LocatorListener previously added with addReferenceListener.
removeRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.RootManager
 
removeRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
removeRootListener(LocatorListener) - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
removeValue(Object) - Method in class org.planx.util.BijectiveMap
 
removeValue(Object) - Method in class org.planx.util.MultiMap
Removes all occurrences of the specified value.
replace(V, V) - Method in class org.planx.util.PersistentMap
 
replaceChild(Node, int, Node) - Method in class org.planx.xmlstore.koala.nodes.DVMNodeFactory
 
replaceChild(Node, int, Node) - Method in class org.planx.xmlstore.NodeFactory
The method is used for replacing a child of an element node.
reply(int, Message, InetAddress, int) - Method in class org.planx.routing.messaging.MessageServer
Sends a reply to the message with the specified communication id.
REQUEST_BIND - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_EXEC - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_LOAD - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_LOOKUP - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_REBIND - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_SAVE - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
REQUEST_VERSION - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
resolveRoot(Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
 
resolveRoot(Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Returns the argument root.
resolveRoot(Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
 
RESPONSE_IO_EXCEPTION - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
RESPONSE_NAME_SERVER_EXCEPTION - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
RESPONSE_NOT_A_CLASS - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
RESPONSE_OK - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
RESPONSE_TIMEOUT - Variable in class org.planx.routing.kademlia.Configuration
If no reply received from a node in this period (in milliseconds) consider the node unresponsive.
RESPONSE_UNBOUND_NAME - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
RESPONSE_UNKNOWN_VREF - Static variable in class org.planx.xmlstore.stores.NetworkProtocol
 
ResponsibleOperation - Class in org.planx.routing.kademlia.operation
Finds the K closest nodes to a specified identifier and returns their associated peer information objects.
ResponsibleOperation(Configuration, MessageServer, Space, Node, Identifier) - Constructor for class org.planx.routing.kademlia.operation.ResponsibleOperation
 
responsiblePeers(Identifier) - Method in interface org.planx.routing.DistributedMap
Returns a List of InetSocketAddresses identifying the peers responsible for the specified key according to the underlying routing algorithm.
responsiblePeers(Identifier) - Method in class org.planx.routing.kademlia.Kademlia
 
RESTORE_INTERVAL - Variable in class org.planx.routing.kademlia.Configuration
Interval in milliseconds between execution of RestoreOperations.
RestoreOperation - Class in org.planx.routing.kademlia.operation
Refreshes all buckets and sends HashMessages to all nodes that are among the K closest to mappings stored at this node.
RestoreOperation(Configuration, MessageServer, Space, Node, Map) - Constructor for class org.planx.routing.kademlia.operation.RestoreOperation
 
retain(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.RootManager
Requests that a root be kept permanently alive.
retain(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
retain(LocalLocator) - Method in class org.planx.xmlstore.koala.storage.StorageManager
Requests that a root be kept permanently alive.
retain(LocalLocator) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Informs the XMLStore that the data referenced by the specified Reference should be kept permanently.
retain(ValueReference) - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
retainValues(Collection<V>) - Method in class org.planx.util.MultiMap
Removes all values not present in the specified set.
retrieve(SourceId) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns an in-memory representation of the data contained in the segment with the specified SourceId.
RootManager - Class in org.planx.xmlstore.koala.storage
The RootManager keeps track of live roots.
RootManager() - Constructor for class org.planx.xmlstore.koala.storage.RootManager
 
RoutingException - Exception in org.planx.routing
 
RoutingException() - Constructor for exception org.planx.routing.RoutingException
 
RoutingException(String) - Constructor for exception org.planx.routing.RoutingException
 
RoutingException(Throwable) - Constructor for exception org.planx.routing.RoutingException
 
RoutingException(String, Throwable) - Constructor for exception org.planx.routing.RoutingException
 
run(XMLStore<R>, R) - Method in interface org.planx.xmlstore.StoredCode
The method to call when the XML Store performs exec.

S

save(SystemNode) - Method in class org.planx.xmlstore.koala.io.CacheNodeFileSystem
 
save(RawNode) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Called after discrimination to allow a live node to synchronize unwritten state changes with its byte representation.
save(SystemNode) - Method in interface org.planx.xmlstore.koala.io.NodeFileSystem
Saves a node in the file system returning a Locator to it.
save(SystemNode) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
Saves at end of the file system by appending (i.e. allocating using NodeFileSystemImpl.allocate()).
save(NodeFileSystem, boolean) - Method in class org.planx.xmlstore.koala.io.RawNode
Synchronizes the byte representation of the node if necessary.
save(RawNode) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Saves the node in-place or in the file system provided in the constructor.
save(NodeFileSystem, boolean) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
Does nothing.
save(SystemNode) - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Saves the node to the single in-memory write segment unless the node already has a Locator associated with it.
save(SystemNode) - Method in class org.planx.xmlstore.koala.storage.StorageManager
Saves a node and returns a LocalLocator to it.
save(RawNode) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Saves the node in-place if possible, or otherwise in the node's segment's file system.
save(Node) - Method in class org.planx.xmlstore.stores.AbstractXMLStore
 
save(Node) - Method in class org.planx.xmlstore.stores.DistributedXMLStore
Always saves locally even if the node might already be stored elsewhere in the network.
save(Node) - Method in class org.planx.xmlstore.stores.LocalXMLStore
Saves the specified Node and returns a LocalLocator to it.
save(Node) - Method in class org.planx.xmlstore.stores.RemoteXMLStore
The subtree rooted at the specified Node is sent to the remote XMLStore and saved there.
save(Node) - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
Saves the Node, gives it a ValueReference, and registers it in the local reference server.
save(Node) - Method in interface org.planx.xmlstore.XMLStore
Saves the XML data represented by the specified Node.
SAXBuilder - Class in org.planx.xmlstore.input
 
SAXOutputter - Class in org.planx.xmlstore.output
 
SAXOutputter(ContentHandler) - Constructor for class org.planx.xmlstore.output.SAXOutputter
 
SAXOutputter(ContentHandler, ErrorHandler, DTDHandler, EntityResolver) - Constructor for class org.planx.xmlstore.output.SAXOutputter
 
SAXOutputter(ContentHandler, ErrorHandler, DTDHandler, EntityResolver, LexicalHandler) - Constructor for class org.planx.xmlstore.output.SAXOutputter
 
seek(Locator) - Method in class org.planx.io.AbstractPositionalData
 
seek(long) - Method in class org.planx.io.AbstractPositionalData
 
seek(Locator) - Method in class org.planx.io.ByteData
 
seek(long) - Method in class org.planx.io.ByteData
 
seek(Locator) - Method in class org.planx.io.FileData
 
seek(long) - Method in class org.planx.io.FileData
 
seek(Locator) - Method in interface org.planx.io.Positionable
Positions the data source at the specified locator.
seek(long) - Method in interface org.planx.io.Positionable
Positions the data source at the specified position.
seenNow() - Method in class org.planx.routing.kademlia.Node
Update time last seen for this node and reset fail count.
Segment - Class in org.planx.xmlstore.koala.storage
A Segment is a collection of nodes which is stored consecutively on disk.
Segment(SegmentManager, StorageConfiguration) - Constructor for class org.planx.xmlstore.koala.storage.Segment
Create an empty Segment.
SegmentManager - Class in org.planx.xmlstore.koala.storage
A SegmentManager manages multiple segments with unique SourceIds.
SegmentManager(String) - Constructor for class org.planx.xmlstore.koala.storage.SegmentManager
 
SegmentManager(String, StorageConfiguration) - Constructor for class org.planx.xmlstore.koala.storage.SegmentManager
Creates a SegmentManager loading previously saved data from disk using the specified name or creating a new manager that will save data using the name.
segmentSize - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
The preferred size of segments.
send(Message, InetAddress, int, Receiver) - Method in class org.planx.routing.messaging.MessageServer
Sends the specified Message and calls the specified Receiver when a reply for the message is received.
setAllocationFileSystem(FileSystem) - Method in class org.planx.io.MultiFileSystem
Sets the file system designated for new allocations of data.
setChild(int, Locator) - Method in class org.planx.xmlstore.koala.io.RawNode
 
setChild(int, RawNode) - Method in class org.planx.xmlstore.koala.io.RawNode
Changes a child pointer of this node in its in-memory representation.
setChild(RawNode, int, RawNode) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
setChild(int, Locator) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
setChild(int, RawNode) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
setChild(int, SystemNode) - Method in class org.planx.xmlstore.koala.nodes.DVMBinaryNode
Throws an IllegalArgumentException since BINARY nodes cannot have children.
setChild(int, SystemNode) - Method in class org.planx.xmlstore.koala.nodes.DVMCharDataNode
Throws an IllegalArgumentException since CHARDATA nodes cannot have children.
setCompactId(SourceId) - Method in class org.planx.io.Locator.CompactStreamer
 
setDataSize(long) - Method in class org.planx.xmlstore.koala.storage.Segment
 
setFileSystem(NodeFileSystem<Locator>) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
 
setForwardId(SourceId) - Method in class org.planx.xmlstore.koala.storage.Segment
 
setHeight(int) - Method in class org.planx.xmlstore.koala.io.RawNode
 
setHeight(RawNode, int) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
setId(SourceId) - Method in class org.planx.io.FileData
 
setId(SourceId) - Method in class org.planx.io.Locator
Sets the SourceId of this locator.
setIsShared(boolean) - Method in class org.planx.xmlstore.koala.io.RawNode
Updates the isShared status of this node in the underlying byte representation.
setIsShared(boolean) - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
Does nothing.
setLength(long) - Method in class org.planx.io.Bound
Sets the length of this bound.
setLength(int[], int) - Static method in class org.planx.util.Array
Sets the length of the array to the specified length.
setLength(byte[], int) - Static method in class org.planx.util.Array
See Array.setLength(int[], int).
setLocator(Locator) - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
setLocator(Locator) - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
setLocator(Locator) - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
setManager(SegmentManager) - Method in class org.planx.xmlstore.koala.storage.PolicyFactory
 
setMeta(Bound) - Method in interface org.planx.io.FileSystem
Sets the meta data pointer of this file system.
setMeta(Bound) - Method in class org.planx.io.LocalFileSystem
 
setMeta(Bound) - Method in class org.planx.io.MemoryFileSystem
Unsupported.
setMeta(Bound) - Method in class org.planx.io.MultiFileSystem
Unsupported.
setMeta(Bound) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
setModified(boolean) - Method in class org.planx.io.AbstractPositionalData
 
setModified(boolean) - Method in class org.planx.xmlstore.koala.storage.Segment
 
setPosition(long) - Method in class org.planx.io.Locator
Sets the position of this locator.
setReadOnly(boolean) - Method in class org.planx.io.AbstractPositionalData
 
setReadOnly(boolean) - Method in interface org.planx.io.FileSystem
Sets the read-only status of this file system.
setReadOnly(boolean) - Method in class org.planx.io.LocalFileSystem
 
setReadOnly(boolean) - Method in class org.planx.io.MemoryFileSystem
 
setReadOnly(boolean) - Method in class org.planx.io.MultiFileSystem
Sets the read-only status of all the file systems.
setReadOnly(boolean) - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
setReadOnly(boolean) - Method in class org.planx.xmlstore.koala.storage.Segment
 
setSize(long) - Method in class org.planx.io.FileData
 
setStateId(SourceId) - Method in class org.planx.xmlstore.koala.storage.Segment
 
setValueReference(ValueReference) - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
setValueReference(ValueReference) - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
setValueReference(ValueReference) - Method in interface org.planx.xmlstore.koala.nodes.SystemNode
 
setVisitToken(Object) - Method in class org.planx.xmlstore.koala.io.RawNode
 
setVisitToken(RawNode, Object) - Method in class org.planx.xmlstore.koala.io.RawNodeNavigator
 
share(RawNode) - Method in class org.planx.xmlstore.koala.io.RawNodeCompactor
 
share(List<Locator>, List<Locator>) - Method in class org.planx.xmlstore.koala.io.RawNodeCompactor
 
share() - Method in class org.planx.xmlstore.koala.storage.Sharer
Incremental sharing algorithm.
share(SourceId...) - Method in class org.planx.xmlstore.koala.storage.Sharer
Performs compaction of the argument segments and persists data.
Sharer - Class in org.planx.xmlstore.koala.storage
 
Sharer(SegmentManager, RootManager, StorageConfiguration) - Constructor for class org.planx.xmlstore.koala.storage.Sharer
 
sharerPeriod - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
The number of milli seconds between sharer invocations.
SimpleIOPolicy - Class in org.planx.xmlstore.koala.io
A straight-forward IOPolicy that does not cache locators in nodes when saved, and loads all nodes from a designated file system.
SimpleIOPolicy() - Constructor for class org.planx.xmlstore.koala.io.SimpleIOPolicy
The file system must be set later using SimpleIOPolicy.setFileSystem(org.planx.xmlstore.koala.io.NodeFileSystem).
SimpleIOPolicy(FileSystem) - Constructor for class org.planx.xmlstore.koala.io.SimpleIOPolicy
 
SimpleIOPolicy(NodeFileSystem<Locator>) - Constructor for class org.planx.xmlstore.koala.io.SimpleIOPolicy
 
size() - Method in class org.planx.io.ByteData
 
size() - Method in class org.planx.io.FileData
 
size() - Method in interface org.planx.io.FileSystem
Returns the size of this file system.
size() - Method in class org.planx.io.LocalFileSystem
 
size(Locator) - Method in class org.planx.io.Locator.CompactStreamer
 
size() - Method in class org.planx.io.MemoryFileSystem
 
size() - Method in class org.planx.io.MultiFileSystem
Returns the total size of all associated file systems.
size(E) - Method in interface org.planx.io.SizeStreamer
Returns the number of bytes that this Streamer will write when the toStream method is invoked on the specified object.
size() - Method in class org.planx.util.BijectiveMap
 
size() - Method in class org.planx.util.MultiMap
 
size() - Method in class org.planx.util.SoftValueMap
 
size() - Method in class org.planx.util.UnmodifiableArrayList
 
size() - Method in class org.planx.util.WeakHashSet
 
size() - Method in class org.planx.util.WeakValueMap
 
size() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
size() - Method in class org.planx.xmlstore.koala.io.RawNode
Returns the number of bytes that the byte representation of this RawNode occupies.
size() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
size() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns the on-disk size of the associated LocalFileSystem.
size() - Method in class org.planx.xmlstore.koala.storage.StorageManager
 
size() - Method in class org.planx.xmlstore.stores.LocalXMLStore
Returns the disk size of this LocalXMLStore.
SizeStreamer<E> - Interface in org.planx.io
A Streamer that is also capable of informing, in advance, how many bytes will be written to a data source.
skipBytes(int) - Method in class org.planx.io.AbstractPositionalData
 
softAddEdge(Locator, int, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Informs of the existence of an outgoing edge from a segment.
softAddEdge(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Does nothing.
softAddEdge(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
Updates the SegmentManager's relations mapping to reflect that there exist edges from the parent segment to the child segment.
softResolve(Locator, int, Locator) - Method in interface org.planx.xmlstore.koala.io.IOPolicy
Lazily resolves any indirections that may exist along the edge from (parent, childIndex) to child and returns a Locator pointing to the actual child.
softResolve(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.io.SimpleIOPolicy
Returns the argument child.
softResolve(Locator, int, Locator) - Method in class org.planx.xmlstore.koala.storage.StoragePolicy
If the child is in a different segment from the parent, then the method recursively retrieves the child's segment until a segment outside the super-region defined in the constructor is found.
SoftValueMap<K,V> - Class in org.planx.util
A map implementation with soft values.
SoftValueMap() - Constructor for class org.planx.util.SoftValueMap
 
SoftValueMap(int) - Constructor for class org.planx.util.SoftValueMap
 
SoftValueMap(int, float) - Constructor for class org.planx.util.SoftValueMap
 
sort(Collection<Node>, Identifier) - Static method in class org.planx.routing.kademlia.Node
Sorts the nodes in the specified list in order of increasing distance to the specified identifier.
SourceId - Class in org.planx.io
A unique file system identifier used to distinguish between different instances of file systems, and, in some cases, different states of a single file system.
SourceId() - Constructor for class org.planx.io.SourceId
Creates a new random SourceId.
Space - Class in org.planx.routing.kademlia
Represents a space (or subspace) containing nodes.
Space(Node, Configuration) - Constructor for class org.planx.routing.kademlia.Space
Construct an empty top level space that covers the complete range of identifiers.
Space(Node, Configuration, KademliaNeighbourhoodListener) - Constructor for class org.planx.routing.kademlia.Space
Construct an empty top level space that covers the complete range of identifiers.
STALE - Variable in class org.planx.routing.kademlia.Configuration
Number of times a node can be marked as stale before it is actually removed.
StaleReferenceException - Exception in org.planx.xmlstore
 
StaleReferenceException(Throwable) - Constructor for exception org.planx.xmlstore.StaleReferenceException
 
StaleReferenceException(String) - Constructor for exception org.planx.xmlstore.StaleReferenceException
 
StaleReferenceException(String, Throwable) - Constructor for exception org.planx.xmlstore.StaleReferenceException
 
StaleReferenceException(String, Reference, Reference) - Constructor for exception org.planx.xmlstore.StaleReferenceException
 
start() - Method in class org.planx.xmlstore.koala.storage.Sharer
Starts the Sharer background thread with the period between runs specified in the constructor.
startDocument() - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
startElement(String, String, String, Attributes) - Method in class org.planx.xmlstore.koala.nodes.DVMHandler
 
stateId() - Method in class org.planx.xmlstore.koala.storage.Segment
 
states() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
Returns a mapping from segment ids to state ids.
stop() - Method in class org.planx.xmlstore.koala.storage.Sharer
Stops the Sharer background thread.
StorageConfiguration - Class in org.planx.xmlstore.koala.storage
Configuration parameters for the storage system.
StorageConfiguration() - Constructor for class org.planx.xmlstore.koala.storage.StorageConfiguration
 
StorageManager - Class in org.planx.xmlstore.koala.storage
 
StorageManager() - Constructor for class org.planx.xmlstore.koala.storage.StorageManager
 
StoragePolicy - Class in org.planx.xmlstore.koala.storage
See individual methods for comments on the implemented policies.
StoragePolicy(SegmentManager, Segment...) - Constructor for class org.planx.xmlstore.koala.storage.StoragePolicy
The variable argument segments defines a super segment that contain the nodes that are inside the area to be shared/discriminated.
StoredCode<R extends Reference> - Interface in org.planx.xmlstore
Interface describing code to be executed by an ExecXMLStore.
StoreMessage - Class in org.planx.routing.kademlia.operation
Message representing a mapping from a key to a value.
StoreMessage(Node, Identifier, TimestampedValue, boolean) - Constructor for class org.planx.routing.kademlia.operation.StoreMessage
 
StoreMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.StoreMessage
 
StoreOperation - Class in org.planx.routing.kademlia.operation
Stores the mapping at the K closest nodes to the key.
StoreOperation(Configuration, MessageServer, Space, Map<Identifier, TimestampedValue>, Node, Identifier, TimestampedValue) - Constructor for class org.planx.routing.kademlia.operation.StoreOperation
 
StoreReceiver - Class in org.planx.routing.kademlia.operation
Receives a StoreMessage and stores the mapping if a mapping with the same key and a newer timestamp does not exist.
StoreReceiver(MessageServer, Node, Space, Map<Identifier, TimestampedValue>) - Constructor for class org.planx.routing.kademlia.operation.StoreReceiver
 
StoreRequestMessage - Class in org.planx.routing.kademlia.operation
 
StoreRequestMessage(Node, long, long) - Constructor for class org.planx.routing.kademlia.operation.StoreRequestMessage
 
StoreRequestMessage(DataInput) - Constructor for class org.planx.routing.kademlia.operation.StoreRequestMessage
 
StoreRequestReceiver - Class in org.planx.routing.kademlia.operation
Receives an incoming StoreRequestMessage and issues StoreMessages for mappings in the requested interval that should be available at the origin node.
StoreRequestReceiver(MessageServer, Node, Space, Map) - Constructor for class org.planx.routing.kademlia.operation.StoreRequestReceiver
 
Streamable - Interface in org.planx.routing.messaging
A Streamable object is able to write its state to an output stream and a class implementing Streamable must be able to recreate an instance of the class from an input stream.
Streamer<E> - Interface in org.planx.io
A Streamer is capable of writing and reading objects of a specific class to and from byte representation.
Streamers - Class in org.planx.io
Tools for Streamers and writing to DataOutput and reading from DataInput.
stringStreamer() - Static method in class org.planx.io.Streamers
 
subSequence(int, int) - Method in class org.planx.xmlstore.DocAttribute
 
subSequence(int, int) - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
SystemNode - Interface in org.planx.xmlstore.koala.nodes
 

T

timeout(int) - Method in class org.planx.routing.kademlia.operation.AbstractNodeLookupOperation
A node does not respond or a packet was lost.
timeout(int) - Method in class org.planx.routing.kademlia.operation.ConnectOperation
Resends a ConnectMessage to the boot strap node a maximum of MAX_ATTEMPTS times.
timeout(int) - Method in class org.planx.routing.kademlia.operation.OriginReceiver
Does nothing, can be overridden by subclasses to change timeout functionality.
timeout(int) - Method in interface org.planx.routing.messaging.Receiver
No reply received in MessageServer.TIMEOUT seconds for the message with communication id comm.
timestamp() - Method in class org.planx.routing.kademlia.TimestampedValue
 
TimestampedEntry - Class in org.planx.routing.kademlia
A timestamped mapping consisting of a key and value.
TimestampedEntry(Identifier, TimestampedValue) - Constructor for class org.planx.routing.kademlia.TimestampedEntry
 
TimestampedValue - Class in org.planx.routing.kademlia
A wrapper class that adds a timestamp to any serializable object.
TimestampedValue(Serializable, long) - Constructor for class org.planx.routing.kademlia.TimestampedValue
 
TimestampedValue(DataInput) - Constructor for class org.planx.routing.kademlia.TimestampedValue
 
toArray() - Method in class org.planx.util.UnmodifiableArrayList
 
toArray(T[]) - Method in class org.planx.util.UnmodifiableArrayList
 
toBinary() - Method in class org.planx.routing.Identifier
Returns a binary string representation of this identifier with IDSIZE bits.
toBinary(BigInteger) - Static method in class org.planx.routing.Identifier
Returns a binary string representation of the specified BigInteger with IDSIZE bits.
toByteArray() - Method in class org.planx.io.ByteData
Returns the contents of the internal byte array in a new byte array.
toByteArray(E, Streamer<E>) - Static method in class org.planx.io.Streamers
 
toByteArray() - Method in class org.planx.routing.Identifier
Returns the value of the identifier in a byte array of size IDSIZE/8 in big-endian order (most significant byte is in the zeroth element).
toStream(DataOutput, Locator) - Method in class org.planx.io.Locator.CompactStreamer
 
toStream(DataOutput, T) - Method in class org.planx.io.PolymorphicStreamer
 
toStream(DataOutput, E) - Method in interface org.planx.io.Streamer
Writes the internal state of the object to the data source in a format that can later be read by the same Streamer using the fromStream method.
toStream(DataOutput) - Method in class org.planx.routing.Identifier
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.Node
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.DataMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.HashMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.LookupMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.NodeReplyMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.OriginMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.RemoveMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.StoreMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
toStream(DataOutput) - Method in class org.planx.routing.kademlia.TimestampedValue
 
toStream(DataOutput) - Method in interface org.planx.routing.messaging.Streamable
Writes the internal state of the Streamable object to the output stream in a format that can later be read by the same Streamble class using the Streamable.fromStream(java.io.DataInput) method.
toString() - Method in class org.planx.io.Bound
 
toString() - Method in class org.planx.io.LocalFileSystem
 
toString() - Method in class org.planx.io.Locator
 
toString() - Method in class org.planx.io.MemoryFileSystem
 
toString() - Method in class org.planx.io.MultiFileSystem
 
toString() - Method in class org.planx.io.SourceId
 
toString() - Method in class org.planx.routing.Identifier
 
toString() - Method in class org.planx.routing.kademlia.Kademlia
For debugging purposes, returns the contents of the internal space.
toString() - Method in class org.planx.routing.kademlia.Node
 
toString() - Method in class org.planx.routing.kademlia.operation.AcknowledgeMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.ConnectMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.DataLookupMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.DataMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.HashMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.HashRequestMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.NodeLookupMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.NodeReplyMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.RemoveMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.StoreMessage
 
toString() - Method in class org.planx.routing.kademlia.operation.StoreRequestMessage
 
toString() - Method in class org.planx.routing.kademlia.Space
For debugging purposes, returns a string containing an XML document representing the binary tree of spaces rooted at this space.
toString() - Method in class org.planx.routing.kademlia.TimestampedEntry
 
toString() - Method in class org.planx.routing.kademlia.TimestampedValue
 
toString() - Method in class org.planx.util.BijectiveMap
 
toString() - Method in class org.planx.util.MultiMap
 
toString() - Method in class org.planx.util.ObjectReference
Returns the result of invoking the toString method on the object pointed to.
toString() - Method in class org.planx.util.PersistentMap
 
toString() - Method in class org.planx.xmlstore.DocAttribute
Returns the value of this attribute
toString() - Method in class org.planx.xmlstore.DocNode
 
toString() - Method in class org.planx.xmlstore.koala.io.NodeFileSystemImpl
 
toString() - Method in class org.planx.xmlstore.koala.io.RawNode
 
toString() - Method in class org.planx.xmlstore.koala.io.VirtualRawNode
 
toString() - Method in class org.planx.xmlstore.koala.nodes.AbstractDVMNode
 
toString() - Method in class org.planx.xmlstore.koala.nodes.DVMAttribute
 
toString() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
 
toString() - Method in class org.planx.xmlstore.koala.storage.RootManager
 
toString() - Method in class org.planx.xmlstore.koala.storage.Segment
 
toString() - Method in class org.planx.xmlstore.koala.storage.SegmentManager
 
toString() - Method in class org.planx.xmlstore.references.RelativeDualReference
 
toString() - Method in class org.planx.xmlstore.references.RelativeReference
 
toString() - Method in class org.planx.xmlstore.references.ValueReference
 
toString() - Method in class org.planx.xmlstore.stores.AbstractXMLStore
 
toString() - Method in class org.planx.xmlstore.stores.LocalXMLStore
 
toString() - Method in class org.planx.xmlstore.stores.RemoteXMLStore
 
toString() - Method in class org.planx.xmlstore.stores.TranslatorXMLStore
 
TranslatorXMLStore - Class in org.planx.xmlstore.stores
A bridge between location independent and location dependent XMLStores.
TranslatorXMLStore(LocalXMLStore) - Constructor for class org.planx.xmlstore.stores.TranslatorXMLStore
 

U

uncheckedNode(String, List<SystemNode>, List<Attribute>, Locator, boolean) - Static method in class org.planx.xmlstore.koala.nodes.DVMElementNode
Returns a new DVMElementNode where the child and attribute lists are not checked for immutability or copied during construction.
UNIT_INTERVAL - Static variable in class org.planx.routing.kademlia.HashCalculator
 
UnknownMessageException - Exception in org.planx.routing.messaging
Thrown to indicate that a message type is unknown or a message with a given communication identifier is unexpected.
UnknownMessageException() - Constructor for exception org.planx.routing.messaging.UnknownMessageException
 
UnknownMessageException(String) - Constructor for exception org.planx.routing.messaging.UnknownMessageException
 
UnknownMessageException(Throwable) - Constructor for exception org.planx.routing.messaging.UnknownMessageException
 
UnknownMessageException(String, Throwable) - Constructor for exception org.planx.routing.messaging.UnknownMessageException
 
UnknownReferenceException - Exception in org.planx.xmlstore
 
UnknownReferenceException(Throwable) - Constructor for exception org.planx.xmlstore.UnknownReferenceException
 
UnknownReferenceException(String) - Constructor for exception org.planx.xmlstore.UnknownReferenceException
 
UnknownReferenceException(String, Throwable) - Constructor for exception org.planx.xmlstore.UnknownReferenceException
 
UnknownReferenceException(Reference) - Constructor for exception org.planx.xmlstore.UnknownReferenceException
 
unload() - Method in class org.planx.xmlstore.koala.nodes.NodeProxy
Unload the proxied node from memory.
UnmodifiableArrayList<E> - Class in org.planx.util
 
UnmodifiableArrayList(List<E>) - Constructor for class org.planx.util.UnmodifiableArrayList
 
UnmodifiableArrayList(E[]) - Constructor for class org.planx.util.UnmodifiableArrayList
 
unmodifiableCopy(List<E>) - Static method in class org.planx.util.Array
Returns a shallow, immutable copy of the specified List.
unmodifiableCopy(E[]) - Static method in class org.planx.util.Array
Returns a shallow, immutable copy of the specified array.
unwrapNull(DataInput) - Static method in class org.planx.io.Streamers
Reads a truth value written by Streamers.wrapNull(java.io.DataOutput, java.lang.Object) and returns it.
updatePointer(PositionalDataOutput, Locator, Locator) - Static method in class org.planx.xmlstore.koala.io.NodeConverter
Request that a pointer in byte representation be updated to point to a new location.
updateRequested() - Method in class org.planx.routing.kademlia.operation.StoreMessage
 
useSoftNodeCache - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
Whether to use weak or soft references in the node cache (nodes loaded into memory).
useSoftSegmentCache - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
Whether to use weak or soft references in the segment cache (segments cached in memory).
utfSize(String) - Static method in class org.planx.io.Streamers
Return the number of bytes that will be written by the Streamers.writeUTF(java.io.DataOutput, java.lang.String) method for the specified String.
utilization - Variable in class org.planx.xmlstore.koala.storage.StorageConfiguration
A factor between 0 and 1 indicating how much of a segment must always contain live data.

V

value() - Method in class org.planx.routing.Identifier
 
ValueReference - Class in org.planx.xmlstore.references
A unique location independent Reference computed from a content hash of a Node (currently MD5).
values(Object) - Method in class org.planx.util.MultiMap
Returns a set containing the values associated with the specified key.
values() - Method in class org.planx.util.PersistentMap
 
view() - Method in class org.planx.io.ByteData
Returns a ByteData which is a view of the same data is this ByteData.
VirtualRawNode - Class in org.planx.xmlstore.koala.io
A RawNode that only exists in memory and have no underlying byte representation.
VirtualRawNode(SourceId, List<RawNode>) - Constructor for class org.planx.xmlstore.koala.io.VirtualRawNode
 
VirtualRawNode(SourceId, List<RawNode>, byte) - Constructor for class org.planx.xmlstore.koala.io.VirtualRawNode
Constructs a VirtualRawNode with the specified children that will act as if it is associated with the specified SourceId.

W

WeakHashSet<E> - Class in org.planx.util
A set implementation with weak keys.
WeakHashSet() - Constructor for class org.planx.util.WeakHashSet
 
WeakHashSet(Collection<? extends E>) - Constructor for class org.planx.util.WeakHashSet
 
WeakHashSet(int, float) - Constructor for class org.planx.util.WeakHashSet
 
WeakHashSet(int) - Constructor for class org.planx.util.WeakHashSet
 
WeakValueMap<K,V> - Class in org.planx.util
A map implementation with weak values.
WeakValueMap() - Constructor for class org.planx.util.WeakValueMap
 
WeakValueMap(int) - Constructor for class org.planx.util.WeakValueMap
 
WeakValueMap(int, float) - Constructor for class org.planx.util.WeakValueMap
 
wrapNull(DataOutput, Object) - Static method in class org.planx.io.Streamers
Writes false to the output if the object was null and true if the object was non-null.
write(DataInput, long) - Method in class org.planx.io.AbstractPositionalData
 
write(int) - Method in class org.planx.io.AbstractPositionalData
 
write(byte[]) - Method in class org.planx.io.AbstractPositionalData
 
write(byte[], int, int) - Method in class org.planx.io.AbstractPositionalData
 
write(DataInput, long) - Method in class org.planx.io.ByteData
 
write(DataInput, long) - Method in class org.planx.io.FileData
 
write(DataInput, long) - Method in interface org.planx.io.PositionalDataOutput
Writes to the output length bytes from the specified DataInput.
writeBoolean(boolean) - Method in class org.planx.io.AbstractPositionalData
 
writeByte(int) - Method in class org.planx.io.AbstractPositionalData
 
writeBytes(String) - Method in class org.planx.io.AbstractPositionalData
 
writeChar(int) - Method in class org.planx.io.AbstractPositionalData
 
writeChars(String) - Method in class org.planx.io.AbstractPositionalData
 
writeChildLocators(PositionalDataOutput, List<Locator>) - Static method in class org.planx.xmlstore.koala.io.NodeConverter
Writes a list of Locators representing children to an output.
writeCompactInt(DataOutput, int) - Static method in class org.planx.io.Streamers
Writes a variable sized int.
writeCompactLong(DataOutput, long) - Static method in class org.planx.io.Streamers
Writes a variable sized long.
writeDouble(double) - Method in class org.planx.io.AbstractPositionalData
 
writeFloat(float) - Method in class org.planx.io.AbstractPositionalData
 
writeInt(int) - Method in class org.planx.io.AbstractPositionalData
 
writeList(DataOutput, List<E>, Streamer<E>) - Static method in class org.planx.io.Streamers
Writes a list of objects where the specified Streamer is capable of writing each object contained in the List.
writeLong(long) - Method in class org.planx.io.AbstractPositionalData
 
writeNode(PositionalDataOutput, SystemNode) - Method in class org.planx.xmlstore.koala.io.NodeConverter
Recursively writes the specified node and all its children to the output.
writePosArray(DataOutput, int[]) - Static method in class org.planx.io.Streamers
The ints in the array must be positive, and if an int is smaller than 128, only a single byte is written to represent it.
writeShort(int) - Method in class org.planx.io.AbstractPositionalData
 
writeUTF(String) - Method in class org.planx.io.AbstractPositionalData
 
writeUTF(DataOutput, String) - Static method in class org.planx.io.Streamers
Writes a String of any size in Java modified UTF format.
writeUTF(DataOutput, String, int) - Static method in class org.planx.io.Streamers
Writes a String of any size in Java modified UTF format.

X

XMLException - Exception in org.planx.xmlstore
 
XMLException(Throwable) - Constructor for exception org.planx.xmlstore.XMLException
 
XMLException(String, Throwable) - Constructor for exception org.planx.xmlstore.XMLException
 
XMLException(String) - Constructor for exception org.planx.xmlstore.XMLException
 
XMLOutputter - Class in org.planx.xmlstore.output
 
XMLOutputter() - Constructor for class org.planx.xmlstore.output.XMLOutputter
Construct an XML Outputter that with the default indent step.
XMLOutputter(int) - Constructor for class org.planx.xmlstore.output.XMLOutputter
Construct an XML Outputter that with the specified indent step.
XMLStore<R extends Reference> - Interface in org.planx.xmlstore
An XMLStore provides facilities for persisting semi-structured data in the form of Nodes.
XMLStoreNodeProxy<R extends Reference> - Class in org.planx.xmlstore.koala.nodes
 
XMLStoreNodeProxy(XMLStore<R>, R) - Constructor for class org.planx.xmlstore.koala.nodes.XMLStoreNodeProxy
 

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

Copyright © 2004-2005 Plan-X. All Rights Reserved.