Package org.infinispan.tree.impl
Class TreeStructureSupport
- java.lang.Object
-
- org.infinispan.batch.AutoBatchSupport
-
- org.infinispan.tree.impl.TreeStructureSupport
-
- Direct Known Subclasses:
NodeImpl
,TreeCacheImpl
public class TreeStructureSupport extends AutoBatchSupport
-
-
Field Summary
Fields Modifier and Type Field Description protected AdvancedCache<NodeKey,AtomicMap<?,?>>
cache
-
Fields inherited from class org.infinispan.batch.AutoBatchSupport
batchContainer
-
-
Constructor Summary
Constructors Constructor Description TreeStructureSupport(AdvancedCache<?,?> cache, BatchContainer batchContainer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
createNodeInCache(AdvancedCache<?,?> cache, Fqn fqn)
protected boolean
exists(AdvancedCache<?,?> cache, Fqn f)
boolean
exists(Fqn f)
protected <K,V>
AtomicMap<K,V>getAtomicMap(AdvancedCache<?,?> cache, NodeKey key)
protected <K,V>
AtomicMap<K,V>getAtomicMap(NodeKey key)
static boolean
isLocked(LockManager lockManager, Fqn fqn)
static String
printTree(TreeCache<?,?> cache, boolean details)
Returns a String representation of a tree cache.-
Methods inherited from class org.infinispan.batch.AutoBatchSupport
assertBatchingSupported, endAtomic, failAtomic, startAtomic
-
-
-
-
Field Detail
-
cache
protected final AdvancedCache<NodeKey,AtomicMap<?,?>> cache
-
-
Constructor Detail
-
TreeStructureSupport
public TreeStructureSupport(AdvancedCache<?,?> cache, BatchContainer batchContainer)
-
-
Method Detail
-
exists
public boolean exists(Fqn f)
-
exists
protected boolean exists(AdvancedCache<?,?> cache, Fqn f)
-
createNodeInCache
protected boolean createNodeInCache(AdvancedCache<?,?> cache, Fqn fqn)
-
isLocked
public static boolean isLocked(LockManager lockManager, Fqn fqn)
-
printTree
public static String printTree(TreeCache<?,?> cache, boolean details)
Returns a String representation of a tree cache.
-
getAtomicMap
protected final <K,V> AtomicMap<K,V> getAtomicMap(AdvancedCache<?,?> cache, NodeKey key)
-
-