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  Cache<NodeKey,AtomicMap<?,?>> cache
           
protected  InvocationContextContainer icc
           
 
Fields inherited from class org.infinispan.batch.AutoBatchSupport
batchContainer
 
Constructor Summary
TreeStructureSupport(Cache<?,?> cache, BatchContainer batchContainer, InvocationContextContainer icc)
           
 
Method Summary
 boolean exists(Fqn f)
           
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 Cache<NodeKey,AtomicMap<?,?>> cache

icc

protected final InvocationContextContainer icc
Constructor Detail

TreeStructureSupport

public TreeStructureSupport(Cache<?,?> cache,
                            BatchContainer batchContainer,
                            InvocationContextContainer icc)
Method Detail

exists

public boolean exists(Fqn f)

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)

Google Analytics

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