|
|||||||||||
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. |
java.lang.Object |
clone()
|
boolean |
getChildrenLoaded()
Not to be exposed. |
java.util.Map |
getData()
Returns a copy of the attributes. |
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 |
isLocked()
Not to be exposed. |
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 |
setChildren(java.util.Map children)
Not to be exposed. |
void |
setChildrenLoaded(boolean b)
Not to be exposed. |
void |
setRecursiveTreeCacheInstance(TreeCache cache)
Not to be exposed. |
Methods inherited from interface org.jboss.cache.TreeNode |
addChild, childExists, clear, containsKey, createChild, createChild, get, getChild, getChildren, getDataKeys, getFqn, getImmutableLock, getName, getParent, hasChildren, numAttributes, put, put, put, release, releaseForce, remove, removeAllChildren, 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 void setChildren(java.util.Map children)
TreeNode
public TreeNode getOrCreateChild(java.lang.Object child_name, GlobalTransaction gtx, boolean createIfNotExists)
getOrCreateChild
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 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 |