|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.modules.ehcache.ToolkitInstanceFactoryImpl
public class ToolkitInstanceFactoryImpl
| Field Summary | |
|---|---|
static String |
DELIMITER
|
protected org.terracotta.toolkit.Toolkit |
toolkit
|
| Constructor Summary | |
|---|---|
ToolkitInstanceFactoryImpl(TerracottaClientConfiguration terracottaClientConfiguration)
|
|
| Method Summary | |
|---|---|
boolean |
destroy(String cacheManagerName,
String cacheName)
Destorys any clustered state associated with the given cache. |
String |
getFullyQualifiedCacheName(Ehcache cache)
Returns a fully qualified name for the cache |
static String |
getFullyQualifiedCacheName(String cacheMgrName,
String cacheName)
|
org.terracotta.toolkit.concurrent.locks.ToolkitLock |
getLockForCache(Ehcache cache,
String lockName)
|
SerializedToolkitCache<ClusteredSoftLockIDKey,SerializedReadCommittedClusteredSoftLock> |
getOrCreateAllSoftLockMap(String cacheManagerName,
String cacheName)
|
org.terracotta.toolkit.collections.ToolkitMap<String,AsyncConfig> |
getOrCreateAsyncConfigMap()
|
org.terracotta.toolkit.collections.ToolkitMap<String,Set<String>> |
getOrCreateAsyncListNamesMap(String fullAsyncName)
|
org.terracotta.toolkit.events.ToolkitNotifier<CacheDisposalNotification> |
getOrCreateCacheDisposalNotifier(Ehcache cache)
|
org.terracotta.toolkit.events.ToolkitNotifier<CacheEventNotificationMsg> |
getOrCreateCacheEventNotifier(Ehcache cache)
Returns a ToolkitNotifier for the cachse to notify CacheEventNotificationMsg across the cluster |
org.terracotta.toolkit.collections.ToolkitMap<String,Serializable> |
getOrCreateClusteredStoreConfigMap(String cacheManagerName,
String cacheName)
|
org.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> |
getOrCreateConfigChangeNotifier(Ehcache cache)
Returns a ToolkitNotifier for the cache for notifying CacheConfigChangeNotificationMsg across the
cluster |
org.terracotta.toolkit.collections.ToolkitMap<String,AttributeExtractor> |
getOrCreateExtractorsMap(Ehcache cache)
Returns a ToolkitCache for storing serialized extractors for the cache |
org.terracotta.toolkit.collections.ToolkitMap<SerializedReadCommittedClusteredSoftLock,Integer> |
getOrCreateNewSoftLocksSet(String cacheManagerName,
String cacheName)
|
org.terracotta.toolkit.concurrent.locks.ToolkitLock |
getOrCreateStoreLock(Ehcache cache)
Returns a ToolkitReadWriteLock for protecting the cache's store cluster wide |
org.terracotta.toolkit.internal.cache.ToolkitCacheInternal<String,Serializable> |
getOrCreateToolkitCache(Ehcache cache)
Returns the backend ToolkitCacheInternal to be used for the cache |
SerializedToolkitCache<TransactionID,Decision> |
getOrCreateTransactionCommitStateMap(String cacheManagerName)
Return the map used for storing commit state of ehcache transactions |
org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock |
getSoftLockFreezeLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
|
org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock |
getSoftLockNotifierLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
|
org.terracotta.toolkit.concurrent.locks.ToolkitLock |
getSoftLockWriteLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
|
org.terracotta.toolkit.Toolkit |
getToolkit()
Returns the toolkit associated with this factory |
void |
removeNonStopConfigforCache(Ehcache cache)
|
void |
shutdown()
Shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DELIMITER
protected final org.terracotta.toolkit.Toolkit toolkit
| Constructor Detail |
|---|
public ToolkitInstanceFactoryImpl(TerracottaClientConfiguration terracottaClientConfiguration)
| Method Detail |
|---|
public org.terracotta.toolkit.Toolkit getToolkit()
ToolkitInstanceFactory
getToolkit in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.internal.cache.ToolkitCacheInternal<String,Serializable> getOrCreateToolkitCache(Ehcache cache)
ToolkitInstanceFactoryToolkitCacheInternal to be used for the cache
getOrCreateToolkitCache in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> getOrCreateConfigChangeNotifier(Ehcache cache)
ToolkitInstanceFactoryToolkitNotifier for the cache for notifying CacheConfigChangeNotificationMsg across the
cluster
getOrCreateConfigChangeNotifier in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.events.ToolkitNotifier<CacheEventNotificationMsg> getOrCreateCacheEventNotifier(Ehcache cache)
ToolkitInstanceFactoryToolkitNotifier for the cachse to notify CacheEventNotificationMsg across the cluster
getOrCreateCacheEventNotifier in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.events.ToolkitNotifier<CacheDisposalNotification> getOrCreateCacheDisposalNotifier(Ehcache cache)
getOrCreateCacheDisposalNotifier in interface ToolkitInstanceFactorypublic String getFullyQualifiedCacheName(Ehcache cache)
ToolkitInstanceFactory
getFullyQualifiedCacheName in interface ToolkitInstanceFactory
public static String getFullyQualifiedCacheName(String cacheMgrName,
String cacheName)
public org.terracotta.toolkit.concurrent.locks.ToolkitLock getOrCreateStoreLock(Ehcache cache)
ToolkitInstanceFactoryToolkitReadWriteLock for protecting the cache's store cluster wide
getOrCreateStoreLock in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.collections.ToolkitMap<String,AttributeExtractor> getOrCreateExtractorsMap(Ehcache cache)
ToolkitInstanceFactoryToolkitCache for storing serialized extractors for the cache
getOrCreateExtractorsMap in interface ToolkitInstanceFactorypublic void shutdown()
ToolkitInstanceFactory
shutdown in interface ToolkitInstanceFactory
public SerializedToolkitCache<ClusteredSoftLockIDKey,SerializedReadCommittedClusteredSoftLock> getOrCreateAllSoftLockMap(String cacheManagerName,
String cacheName)
getOrCreateAllSoftLockMap in interface ToolkitInstanceFactory
public org.terracotta.toolkit.collections.ToolkitMap<SerializedReadCommittedClusteredSoftLock,Integer> getOrCreateNewSoftLocksSet(String cacheManagerName,
String cacheName)
getOrCreateNewSoftLocksSet in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.collections.ToolkitMap<String,AsyncConfig> getOrCreateAsyncConfigMap()
getOrCreateAsyncConfigMap in interface ToolkitInstanceFactorypublic org.terracotta.toolkit.collections.ToolkitMap<String,Set<String>> getOrCreateAsyncListNamesMap(String fullAsyncName)
getOrCreateAsyncListNamesMap in interface ToolkitInstanceFactory
public org.terracotta.toolkit.collections.ToolkitMap<String,Serializable> getOrCreateClusteredStoreConfigMap(String cacheManagerName,
String cacheName)
getOrCreateClusteredStoreConfigMap in interface ToolkitInstanceFactorypublic SerializedToolkitCache<TransactionID,Decision> getOrCreateTransactionCommitStateMap(String cacheManagerName)
ToolkitInstanceFactory
getOrCreateTransactionCommitStateMap in interface ToolkitInstanceFactory
public org.terracotta.toolkit.concurrent.locks.ToolkitLock getSoftLockWriteLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
getSoftLockWriteLock in interface ToolkitInstanceFactory
public org.terracotta.toolkit.concurrent.locks.ToolkitLock getLockForCache(Ehcache cache,
String lockName)
getLockForCache in interface ToolkitInstanceFactory
public org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock getSoftLockFreezeLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
getSoftLockFreezeLock in interface ToolkitInstanceFactory
public org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock getSoftLockNotifierLock(String cacheManagerName,
String cacheName,
TransactionID transactionID,
Object key)
getSoftLockNotifierLock in interface ToolkitInstanceFactory
public boolean destroy(String cacheManagerName,
String cacheName)
ToolkitInstanceFactory
destroy in interface ToolkitInstanceFactorypublic void removeNonStopConfigforCache(Ehcache cache)
removeNonStopConfigforCache in interface ToolkitInstanceFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||