|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNode
Represents a node in the tree. Has a relative name and a Fqn. Maintains a hashmap. If the node is created in a replicated cache, the relative and fully qualified name, and the keys and values of the hashmap have to be serializable.
Note that current version supports different levels of transaction locking such
as simple locking (TreeCache.SERIALIZABLE, or R/W lock with upgrade (
REPEATABLE_READ) --that is the read lock
will be automatically upgraded to write lock when the same owner intends to modify
the data after read.
| Method Summary | |
|---|---|
java.util.Set |
acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
Deprecated. Will be removed in JBossCache 1.3. |
void |
addChild(java.lang.Object child_name,
TreeNode n)
Adds the (already created) child node. |
boolean |
childExists(java.lang.Object child_name)
|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent)
|
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
get(java.lang.Object key)
|
TreeNode |
getChild(java.lang.Object childName)
|
java.util.Map |
getChildren()
Will always return an unmodifiable map. |
boolean |
getChildrenLoaded()
Deprecated. Will be removed in JBossCache 1.3. |
java.util.Map |
getData()
Deprecated. Will be removed in JBossCache 1.3. |
java.util.Set |
getDataKeys()
|
Fqn |
getFqn()
|
IdentityLock |
getImmutableLock()
Deprecated. Will be removed in JBossCache 1.3. |
IdentityLock |
getLock()
Deprecated. Will be removed in JBossCache 1.3. |
java.lang.Object |
getName()
|
TreeNode |
getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
Creates a new child of this node if it doesn't exist. |
TreeNode |
getParent()
|
boolean |
hasChildren()
|
boolean |
isLocked()
Deprecated. Will be removed in JBossCache 1.3. |
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)
Deprecated. Will be removed in JBossCache 1.3. |
void |
put(java.util.Map data)
|
void |
put(java.util.Map data,
boolean eraseData)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
release(java.lang.Object caller)
Deprecated. Will be removed in JBossCache 1.3. |
void |
releaseAll(java.lang.Object owner)
Deprecated. Will be removed in JBossCache 1.3. |
void |
releaseAllForce()
Deprecated. Will be removed in JBossCache 1.3. |
void |
releaseForce()
Deprecated. Will be removed in JBossCache 1.3. |
java.lang.Object |
remove(java.lang.Object key)
|
void |
removeAllChildren()
|
void |
removeChild(java.lang.Object childName)
|
void |
setChildren(java.util.Map children)
Deprecated. Will be removed in JBossCache 1.3. |
void |
setChildrenLoaded(boolean b)
Deprecated. Will be removed in JBossCache 1.3. |
void |
setRecursiveTreeCacheInstance(TreeCache cache)
Deprecated. Will be removed in JBossCache 1.3. |
| Method Detail |
|---|
TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent)
Fqn getFqn()
TreeNode getChild(java.lang.Object childName)
void removeChild(java.lang.Object childName)
TreeNode getParent()
void put(java.util.Map data,
boolean eraseData)
java.lang.Object put(java.lang.Object key,
java.lang.Object value)
java.lang.Object remove(java.lang.Object key)
java.lang.Object get(java.lang.Object key)
void clear()
void put(java.util.Map data)
java.lang.Object getName()
void print(java.lang.StringBuffer sb,
int indent)
void printDetails(java.lang.StringBuffer sb,
int indent)
void printIndent(java.lang.StringBuffer sb,
int indent)
boolean containsKey(java.lang.Object key)
DataNodejava.util.Map getChildren()
java.util.Set getDataKeys()
DataNodeboolean childExists(java.lang.Object child_name)
DataNodeint numAttributes()
DataNodeboolean hasChildren()
DataNode
TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
DataNodevoid removeAllChildren()
DataNode
void addChild(java.lang.Object child_name,
TreeNode n)
DataNodejava.util.Map getData()
DataNodeIdentityLock getImmutableLock()
DataNodeIdentityLock getLock()
DataNode
TreeNode getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
DataNode
void printLockInfo(java.lang.StringBuffer sb,
int indent)
DataNodeboolean isLocked()
DataNodevoid releaseAll(java.lang.Object owner)
DataNodevoid releaseAllForce()
DataNode
java.util.Set acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
throws LockingException,
TimeoutException,
java.lang.InterruptedException
LockingException
TimeoutException
java.lang.InterruptedExceptionDataNodevoid setRecursiveTreeCacheInstance(TreeCache cache)
DataNodeboolean getChildrenLoaded()
DataNodevoid setChildrenLoaded(boolean b)
DataNodevoid setChildren(java.util.Map children)
void release(java.lang.Object caller)
DataNodevoid releaseForce()
DataNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||