1 7 package org.jboss.cache; 8 9 import org.jboss.cache.buddyreplication.BuddyManager; 10 import org.jboss.cache.buddyreplication.GravitateResult; 11 import org.jboss.cache.interceptors.Interceptor; 12 import org.jboss.cache.loader.CacheLoader; 13 import org.jboss.cache.loader.CacheLoaderManager; 14 import org.jboss.cache.lock.NodeLock; 15 import org.jboss.cache.marshall.VersionAwareMarshaller; 16 import org.jboss.cache.notifications.Notifier; 17 import org.jboss.cache.statetransfer.StateTransferManager; 18 19 import javax.transaction.Transaction ; 20 import javax.transaction.TransactionManager ; 21 import java.util.List ; 22 import java.util.Map ; 23 24 40 public interface CacheSPI extends Cache 41 { 42 45 NodeSPI getRoot(); 46 47 52 TransactionManager getTransactionManager(); 53 54 57 List <Interceptor> getInterceptorChain(); 58 59 66 void addInterceptor(Interceptor i, int position); 67 68 74 void removeInterceptor(int position); 75 76 79 CacheLoaderManager getCacheLoaderManager(); 80 81 84 BuddyManager getBuddyManager(); 85 86 89 TransactionTable getTransactionTable(); 90 91 96 RPCManager getRPCManager(); 97 98 101 StateTransferManager getStateTransferManager(); 102 103 106 String getClusterName(); 107 108 111 int getNumberOfAttributes(); 112 113 116 int getNumberOfNodes(); 117 118 123 Map <Thread , List <NodeLock>> getLockTable(); 124 125 128 RegionManager getRegionManager(); 129 130 138 GlobalTransaction getCurrentTransaction(Transaction tx, boolean createIfNotExists); 139 140 144 Notifier getNotifier(); 145 146 152 NodeSPI peek(Fqn fqn); 153 154 162 GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, boolean marshal); 163 164 175 VersionAwareMarshaller getMarshaller(); 176 } 177 | Popular Tags |