Serialized Form


Package com.sun.sgs.app

Class com.sun.sgs.app.DeliveryNotSupportedException extends RuntimeException implements Serializable

serialVersionUID: 1L

Serialized Fields

delivery

Delivery delivery
The delivery guarantee.

Class com.sun.sgs.app.ManagerNotFoundException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.MessageRejectedException extends ResourceUnavailableException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.NameExistsException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.NameNotBoundException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.ObjectIOException extends RuntimeException implements Serializable

serialVersionUID: 1L

Serialized Fields

shouldRetry

boolean shouldRetry
Whether an operation that throws this exception should be retried.

 

Class com.sun.sgs.app.ObjectNotFoundException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.ResourceUnavailableException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TaskRejectedException extends ResourceUnavailableException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TransactionAbortedException extends TransactionException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TransactionConflictException extends TransactionAbortedException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TransactionException extends RuntimeException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TransactionNotActiveException extends TransactionException implements Serializable

serialVersionUID: 1L

Class com.sun.sgs.app.TransactionTimeoutException extends TransactionAbortedException implements Serializable

serialVersionUID: 1L


Package com.sun.sgs.app.util

Class com.sun.sgs.app.util.ManagedSerializable extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

object

Object object
The serializable object being wrapped by this instance, which may be null.

 

Class com.sun.sgs.app.util.ScalableDeque extends AbstractCollection<E> implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reads in all state for the deque and initializes the transient backingMap field to null

Throws:
IOException
ClassNotFoundException
Serialized Fields

headElement

ManagedReference<T> headElement
A reference to the element at the head of the list.


headCounter

ManagedReference<T> headCounter
A counter for the unique Id assigned to elements at the head of the deque. When a new head element is added, this counter is decremented for the next element. In doing so, this ensures that a monotonic ordering exists for all elements, where the element at the head of the deque has a numerically smaller id than all other elements.

See Also:
ScalableDeque.addToHead(Element)

tailElement

ManagedReference<T> tailElement
A reference to the element at the tail end of the list.


tailCounter

ManagedReference<T> tailCounter
A counter for the unique Id assigned to elements at the tail end of the deque. When a new tail element is added, this counter is incremented for the next element. In doing so, this ensures that a monotonic ordering exists for all elements, where the element at the tail end of the list has a numerically larger id than all other elements.

See Also:
ScalableDeque.addToTail(Element)

backingMapRef

ManagedReference<T> backingMapRef
A reference to the ScalableHashMap that will store all the mappings

Class com.sun.sgs.app.util.ScalableHashMap extends AbstractMap<K,V> implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstructs the ScalableHashMap from the provided stream.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Saves the state of this ScalableHashMap instance to the provided stream.

Serial Data:
a boolean of whether this instance was a leaf node. If this instance is a leaf node, this boolean is followed by a series PrefixEntry instances, some of which may be chained. The deserialization should count each chained entry towards the total size of the leaf.
Throws:
IOException
Serialized Fields

minorVersion

short minorVersion
The minor version number, which can be modified to note a compatible change to the data structure. Incompatible changes should be marked by a change to the serialVersionUID.

 

parentRef

ManagedReference<T> parentRef
The parent node directly above this. For the root node, this should always be null.

 

leftLeafRef

ManagedReference<T> leftLeafRef
The leaf node immediately to the left of this node if this is a leaf node, else null.

 

rightLeafRef

ManagedReference<T> rightLeafRef
The leaf node immediately to the right of this node if this is a leaf node, else null.

 

nodeDirectory

ManagedReference<T>[] nodeDirectory
The lookup directory for deciding which node to access based on a provided prefix. If this instance is a leaf node, the nodeDirectory for that instance will be null. Note that this directory contains both leaf nodes as well as other directory nodes.

 

modifications

int modifications
The monotonic counter that reflects the number of times this instance has been modified. The counter is used by the ConcurrentIterator class to detect changes between transactions.

 

size

int size
The number of entries in this node's table. Note that this is not the total number of entries in the entire tree. For a directory node, this should be set to 0.

 

splitThreshold

int splitThreshold
The maximum number of PrefixEntry entries in a leaf node before it will split into two leaf nodes.

 
See Also:
split

leafCapacity

int leafCapacity
The capacity of the PrefixEntry table.

 

minDepth

int minDepth
The minimum depth of the tree, which is controlled by the minimum concurrency factor

 
See Also:
initDepth

depth

int depth
The depth of this node in the tree.

 

maxDirBits

int maxDirBits
The maximum number of bits used in the node directory. This is calculated based on the directorySize provided in the constructor.

 
See Also:
addLeavesToDirectory

Class com.sun.sgs.app.util.ScalableHashSet extends AbstractSet<E> implements Serializable

serialVersionUID: 1L

Serialized Fields

minorVersion

short minorVersion
The minor version number, which can be modified to note a compatible change to the data structure. Incompatible changes should be marked by a change to the serialVersionUID.

 

map

ManagedReference<T> map
The reference to the backing map for this set.

 

Class com.sun.sgs.app.util.ScalableList extends AbstractList<E> implements Serializable

serialVersionUID: 1L

Serialized Fields

root

ManagedReference<T> root
The top node in the tree


headRef

ManagedReference<T> headRef
A reference to the head node of the list.


tailRef

ManagedReference<T> tailRef
A reference to the tail of the list. This makes appending to the list a constant-time operation.


bucketSize

int bucketSize
The maximum number of elements a ListNode can contain. This number should be small enough to enable concurrency but large enough to contain a reasonable number of nodes. If it is not explicitly set, it defaults to a value of 10.


branchingFactor

int branchingFactor
The maximum number of children contained in a TreeNode; this parameter is passed to the TreeNode during instantiation. If it is not explicitly set, it defaults to a value of 5.


Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved