|
|||||||||||
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 TreeNode
DataNode
public java.util.Set getDataKeys()
getDataKeys
in interface TreeNode
DataNode
public boolean childExists(java.lang.Object child_name)
childExists
in interface TreeNode
DataNode
public void setChildren(java.util.Map children)
public int numAttributes()
numAttributes
in interface TreeNode
DataNode
public boolean hasChildren()
hasChildren
in interface TreeNode
DataNode
public TreeNode getOrCreateChild(java.lang.Object child_name, GlobalTransaction gtx, boolean createIfNotExists)
getOrCreateChild
in interface TreeNode
DataNode
public TreeNode createChild(java.lang.Object child_name, Fqn fqn, TreeNode parent, java.lang.Object key, java.lang.Object value)
createChild
in interface TreeNode
DataNode
public void removeAllChildren()
removeAllChildren
in interface TreeNode
DataNode
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 TreeNode
child_name
- n
- DataNode
public void printLockInfo(java.lang.StringBuffer sb, int indent)
TreeNode
printLockInfo
in interface TreeNode
DataNode
public boolean isLocked()
TreeNode
isLocked
in interface TreeNode
DataNode
public void releaseAll(java.lang.Object owner)
TreeNode
releaseAll
in interface TreeNode
DataNode
public void releaseAllForce()
TreeNode
releaseAllForce
in interface TreeNode
DataNode
public java.util.Set acquireAll(java.lang.Object caller, long timeout, int lock_type) throws LockingException, TimeoutException, java.lang.InterruptedException
TreeNode
acquireAll
in interface TreeNode
LockingException
TimeoutException
java.lang.InterruptedException
DataNode
public void setRecursiveTreeCacheInstance(TreeCache cache)
TreeNode
setRecursiveTreeCacheInstance
in interface TreeNode
DataNode
public boolean getChildrenLoaded()
TreeNode
getChildrenLoaded
in interface TreeNode
DataNode
public void setChildrenLoaded(boolean b)
TreeNode
setChildrenLoaded
in interface TreeNode
DataNode
public boolean acquire(java.lang.Object caller, long lock_acquisition_timeout, int lockTypeWrite) throws java.lang.InterruptedException, LockingException, TimeoutException
java.lang.InterruptedException
LockingException
TimeoutException
public IdentityLock getLock()
TreeNode
getLock
in interface TreeNode
DataNode
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public java.util.Map getData()
TreeNode
getData
in interface TreeNode
DataNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |