|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataNode
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 |
|---|
static final int LOCK_TYPE_NONE
static final int LOCK_TYPE_READ
static final int LOCK_TYPE_WRITE
static final boolean PRINT_LOCK_DETAILS
| Method Detail |
|---|
void setChildren(java.util.Map children)
TreeNode
TreeNode getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
getOrCreateChild in interface TreeNodeDataNode
void print(java.lang.StringBuffer sb,
int indent)
print in interface TreeNode
void printDetails(java.lang.StringBuffer sb,
int indent)
printDetails in interface TreeNode
void printIndent(java.lang.StringBuffer sb,
int indent)
printIndent in interface TreeNode
void printLockInfo(java.lang.StringBuffer sb,
int indent)
TreeNode
printLockInfo in interface TreeNodeDataNodeboolean isLocked()
TreeNode
isLocked in interface TreeNodeDataNodevoid releaseAll(java.lang.Object owner)
TreeNode
releaseAll in interface TreeNodeDataNodevoid releaseAllForce()
TreeNode
releaseAllForce in interface TreeNodeDataNode
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.InterruptedExceptionDataNodevoid setRecursiveTreeCacheInstance(TreeCache cache)
TreeNode
setRecursiveTreeCacheInstance in interface TreeNodeDataNodeboolean getChildrenLoaded()
TreeNode
getChildrenLoaded in interface TreeNodeDataNodevoid setChildrenLoaded(boolean b)
TreeNode
setChildrenLoaded in interface TreeNodeDataNode
boolean acquire(java.lang.Object caller,
long lock_acquisition_timeout,
int lockTypeWrite)
throws java.lang.InterruptedException,
LockingException,
TimeoutException
java.lang.InterruptedException
LockingException
TimeoutExceptionIdentityLock getLock()
TreeNode
getLock in interface TreeNodeDataNode
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionjava.util.Map getData()
TreeNode
getData in interface TreeNodeDataNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||