org.jboss.cache
Class OptimisticTreeNode

java.lang.Object
  extended by org.jboss.cache.AbstractNode
      extended by org.jboss.cache.Node
          extended by org.jboss.cache.OptimisticTreeNode
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, DataNode, TreeNode

public class OptimisticTreeNode
extends Node

// TODO: MANIK: Javadoc this

Author:
Manik Surtani (manik@jboss.org)
See Also:
Serialized Form

Field Summary
protected  DataVersion version
           
 
Fields inherited from class org.jboss.cache.AbstractNode
children, data, fqn, INDENT, name, parent
 
Fields inherited from interface org.jboss.cache.DataNode
LOCK_TYPE_NONE, LOCK_TYPE_READ, LOCK_TYPE_WRITE, PRINT_LOCK_DETAILS
 
Constructor Summary
OptimisticTreeNode()
           
OptimisticTreeNode(java.lang.Object child_name, Fqn fqn, Node parent, java.util.Map data, boolean mapSafe, TreeCache cache)
           
OptimisticTreeNode(java.lang.Object childName, Fqn fqn, Node parent, java.util.Map data, boolean mapSafe, TreeCache cache, DataVersion version)
           
OptimisticTreeNode(java.lang.Object child_name, Fqn fqn, Node parent, java.util.Map data, TreeCache cache)
           
OptimisticTreeNode(java.lang.Object child_name, Fqn fqn, Node parent, java.lang.Object key, java.lang.Object value, TreeCache cache)
           
 
Method Summary
 DataVersion getVersion()
          Gets the version id of this node
 void setVersion(DataVersion version)
          Sets the version id of this node.
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.cache.Node
acquire, acquireAll, acquireReadLock, acquireWriteLock, children, clear, clone, containsKey, createChild, createChild, get, getChildrenLoaded, getData, getDataKeys, getImmutableLock, getLock, getOrCreateChild, getParent, init, init, isLocked, numAttributes, printDetails, printLockInfo, put, put, readExternal, release, releaseAll, releaseAllForce, releaseForce, remove, setChildrenLoaded, setRecursiveTreeCacheInstance, writeExternal
 
Methods inherited from class org.jboss.cache.AbstractNode
addChild, childExists, data, getChild, getChildren, getFqn, getName, hasChildren, print, printDetailsInMap, printIndent, put, removeAllChildren, removeChild, setChildren
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version

protected DataVersion version
Constructor Detail

OptimisticTreeNode

public OptimisticTreeNode()

OptimisticTreeNode

public OptimisticTreeNode(java.lang.Object child_name,
                          Fqn fqn,
                          Node parent,
                          java.util.Map data,
                          TreeCache cache)
Parameters:
child_name -
fqn -
parent -
data -
cache -

OptimisticTreeNode

public OptimisticTreeNode(java.lang.Object child_name,
                          Fqn fqn,
                          Node parent,
                          java.util.Map data,
                          boolean mapSafe,
                          TreeCache cache)
Parameters:
child_name -
fqn -
parent -
data -
cache -

OptimisticTreeNode

public OptimisticTreeNode(java.lang.Object child_name,
                          Fqn fqn,
                          Node parent,
                          java.lang.Object key,
                          java.lang.Object value,
                          TreeCache cache)
Parameters:
child_name -
fqn -
parent -
key -
value -
cache -

OptimisticTreeNode

public OptimisticTreeNode(java.lang.Object childName,
                          Fqn fqn,
                          Node parent,
                          java.util.Map data,
                          boolean mapSafe,
                          TreeCache cache,
                          DataVersion version)
Method Detail

getVersion

public DataVersion getVersion()
Gets the version id of this node

Returns:
the version

setVersion

public void setVersion(DataVersion version)
Sets the version id of this node.

Parameters:
version -

toString

public java.lang.String toString()
Overrides:
toString in class Node


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.