|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a DataNode in the cache. TODO: MANIK - add more detailed Javadocs.
| Field Summary | |
static int |
LOCK_TYPE_NONE
Declare locking type with the intention to read or write data |
static int |
LOCK_TYPE_READ
|
static int |
LOCK_TYPE_WRITE
|
static boolean |
PRINT_LOCK_DETAILS
|
| Method Summary | |
boolean |
acquire(java.lang.Object caller,
long lock_acquisition_timeout,
int lockTypeWrite)
|
java.util.Set |
acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
Not to be exposed. |
void |
addChild(java.lang.Object child_name,
TreeNode n)
Adds the (already created) child node. |
boolean |
childExists(java.lang.Object child_name)
|
java.lang.Object |
clone()
|
boolean |
containsKey(java.lang.Object key)
|
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
|
boolean |
getChildrenLoaded()
Not to be exposed. |
java.util.Map |
getData()
Returns a copy of the attributes. |
java.util.Set |
getDataKeys()
|
IdentityLock |
getLock()
Not to be exposed. |
TreeNode |
getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
Creates a new child of this node if it doesn't exist. |
boolean |
hasChildren()
|
boolean |
isLocked()
Not to be exposed. |
int |
numAttributes()
|
void |
print(java.lang.StringBuffer sb,
int indent)
|
void |
printDetails(java.lang.StringBuffer sb,
int indent)
|
void |
printIndent(java.lang.StringBuffer sb,
int indent)
|
void |
printLockInfo(java.lang.StringBuffer sb,
int indent)
Not to be exposed. |
void |
releaseAll(java.lang.Object owner)
Not to be exposed. |
void |
releaseAllForce()
Not to be exposed. |
void |
removeAllChildren()
|
void |
setChildren(java.util.Map children)
Sets Map |
void |
setChildrenLoaded(boolean b)
Not to be exposed. |
void |
setRecursiveTreeCacheInstance(TreeCache cache)
Not to be exposed. |
| Methods inherited from interface org.jboss.cache.TreeNode |
clear, createChild, get, getChild, getChildren, getFqn, getImmutableLock, getName, getParent, put, put, put, release, releaseForce, remove, removeChild |
| Field Detail |
public static final int LOCK_TYPE_NONE
public static final int LOCK_TYPE_READ
public static final int LOCK_TYPE_WRITE
public static final boolean PRINT_LOCK_DETAILS
| Method Detail |
public boolean containsKey(java.lang.Object key)
containsKey in interface TreeNodeDataNodepublic java.util.Set getDataKeys()
getDataKeys in interface TreeNodeDataNodepublic boolean childExists(java.lang.Object child_name)
childExists in interface TreeNodeDataNodepublic void setChildren(java.util.Map children)
public int numAttributes()
numAttributes in interface TreeNodeDataNodepublic boolean hasChildren()
hasChildren in interface TreeNodeDataNode
public TreeNode getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
getOrCreateChild in interface TreeNodeDataNode
public TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
createChild in interface TreeNodeDataNodepublic void removeAllChildren()
removeAllChildren in interface TreeNodeDataNode
public void print(java.lang.StringBuffer sb,
int indent)
print in interface TreeNode
public void printDetails(java.lang.StringBuffer sb,
int indent)
printDetails in interface TreeNode
public void printIndent(java.lang.StringBuffer sb,
int indent)
printIndent in interface TreeNode
public void addChild(java.lang.Object child_name,
TreeNode n)
addChild in interface TreeNodechild_name - n - DataNode
public void printLockInfo(java.lang.StringBuffer sb,
int indent)
TreeNode
printLockInfo in interface TreeNodeDataNodepublic boolean isLocked()
TreeNode
isLocked in interface TreeNodeDataNodepublic void releaseAll(java.lang.Object owner)
TreeNode
releaseAll in interface TreeNodeDataNodepublic void releaseAllForce()
TreeNode
releaseAllForce in interface TreeNodeDataNode
public java.util.Set acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
throws LockingException,
TimeoutException,
java.lang.InterruptedException
TreeNode
acquireAll in interface TreeNodeLockingException
TimeoutException
java.lang.InterruptedExceptionDataNodepublic void setRecursiveTreeCacheInstance(TreeCache cache)
TreeNode
setRecursiveTreeCacheInstance in interface TreeNodeDataNodepublic boolean getChildrenLoaded()
TreeNode
getChildrenLoaded in interface TreeNodeDataNodepublic void setChildrenLoaded(boolean b)
TreeNode
setChildrenLoaded in interface TreeNodeDataNode
public boolean acquire(java.lang.Object caller,
long lock_acquisition_timeout,
int lockTypeWrite)
throws java.lang.InterruptedException,
LockingException,
TimeoutException
java.lang.InterruptedException
LockingException
TimeoutExceptionpublic IdentityLock getLock()
TreeNode
getLock in interface TreeNodeDataNode
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic java.util.Map getData()
TreeNode
getData in interface TreeNodeDataNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||