org.infinispan.tree
Class TreeStructureSupport

java.lang.Object
  extended by org.infinispan.batch.AutoBatchSupport
      extended by org.infinispan.tree.TreeStructureSupport
Direct Known Subclasses:
NodeImpl, TreeCacheImpl

public class TreeStructureSupport
extends AutoBatchSupport


Field Summary
protected  AdvancedCache<NodeKey,AtomicMap<?,?>> cache
           
 
Fields inherited from class org.infinispan.batch.AutoBatchSupport
batchContainer
 
Constructor Summary
TreeStructureSupport(AdvancedCache<?,?> cache, BatchContainer batchContainer)
           
 
Method Summary
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)
          Visual representation of a tree
 
Methods inherited from class org.infinispan.batch.AutoBatchSupport
assertBatchingSupported, endAtomic, startAtomic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Visual representation of a tree

Parameters:
cache - cache to dump
Returns:
String rep

getAtomicMap

protected final <K,V> AtomicMap<K,V> getAtomicMap(NodeKey key)

getAtomicMap

protected final <K,V> AtomicMap<K,V> getAtomicMap(AdvancedCache<?,?> cache,
                                                  NodeKey key)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.