public interface ToolkitInstanceFactory
Toolkit instances used for implementing clustered ehcache| Modifier and Type | Method and Description |
|---|---|
void |
clusterRejoined() |
boolean |
destroy(String cacheManagerName,
String cacheName)
Destorys any clustered state associated with the given cache.
|
org.terracotta.toolkit.internal.collections.ToolkitListInternal |
getAsyncProcessingBucket(String bucketName,
String cacheName) |
String |
getFullyQualifiedCacheName(Ehcache cache)
Returns a fully qualified name for the cache
|
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,
String cacheName) |
org.terracotta.toolkit.collections.ToolkitMap<String,String> |
getOrCreateAttributeMap(String cacheManagerName,
String cacheName)
Returns a
ToolkitMap that will be used internally by Toolkit to store attribute schema. |
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> |
getOrCreateCacheManagerMetaInfoMap(String cacheManagerName) |
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(String cacheManagerName,
String cacheName)
Returns a
ToolkitMap 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
|
WanAwareToolkitCache<String,Serializable> |
getOrCreateWanAwareToolkitCache(String cacheManagerName,
String cacheName,
CacheConfiguration ehcacheConfig,
boolean masterCache,
boolean bidirectional)
This method should only be used by the Orchestrator for fetching a
WanAwareToolkitCache |
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 |
linkClusteredCacheManager(String cacheManagerName,
Configuration configuration)
Links a terracotta enabled cache manager to the cluster
|
void |
markCacheWanDisabled(String cacheManagerName,
String cacheName) |
void |
removeNonStopConfigforCache(Ehcache cache) |
void |
shutdown()
Shutdown
|
void |
unlinkCache(String cacheName)
Un-links a terracotta enabled cache from the cluster
|
void |
waitForOrchestrator(String cacheManagerName) |
org.terracotta.toolkit.Toolkit getToolkit()
String getFullyQualifiedCacheName(Ehcache cache)
org.terracotta.toolkit.internal.cache.ToolkitCacheInternal<String,Serializable> getOrCreateToolkitCache(Ehcache cache)
ToolkitCacheInternal to be used for the cacheorg.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> getOrCreateConfigChangeNotifier(Ehcache cache)
ToolkitNotifier for the cache for notifying CacheConfigChangeNotificationMsg across the
clusterorg.terracotta.toolkit.concurrent.locks.ToolkitLock getOrCreateStoreLock(Ehcache cache)
ToolkitReadWriteLock for protecting the cache's store cluster wideorg.terracotta.toolkit.collections.ToolkitMap<String,AsyncConfig> getOrCreateAsyncConfigMap()
org.terracotta.toolkit.collections.ToolkitMap<String,Set<String>> getOrCreateAsyncListNamesMap(String fullAsyncName, String cacheName)
org.terracotta.toolkit.events.ToolkitNotifier<CacheEventNotificationMsg> getOrCreateCacheEventNotifier(Ehcache cache)
ToolkitNotifier for the cachse to notify CacheEventNotificationMsg across the clusterorg.terracotta.toolkit.collections.ToolkitMap<String,AttributeExtractor> getOrCreateExtractorsMap(String cacheManagerName, String cacheName)
ToolkitMap for storing serialized extractors for the cachecacheManagerName - cacheName - UnsupportedOperationException - if search is not supportedorg.terracotta.toolkit.collections.ToolkitMap<String,String> getOrCreateAttributeMap(String cacheManagerName, String cacheName)
ToolkitMap that will be used internally by Toolkit to store attribute schema.cacheName - boolean destroy(String cacheManagerName, String cacheName)
cacheManagerName - cacheName - void shutdown()
SerializedToolkitCache<TransactionID,Decision> getOrCreateTransactionCommitStateMap(String cacheManagerName)
SerializedToolkitCache<ClusteredSoftLockIDKey,SerializedReadCommittedClusteredSoftLock> getOrCreateAllSoftLockMap(String cacheManagerName, String cacheName)
org.terracotta.toolkit.collections.ToolkitMap<SerializedReadCommittedClusteredSoftLock,Integer> getOrCreateNewSoftLocksSet(String cacheManagerName, String cacheName)
org.terracotta.toolkit.collections.ToolkitMap<String,Serializable> getOrCreateClusteredStoreConfigMap(String cacheManagerName, String cacheName)
org.terracotta.toolkit.collections.ToolkitMap<String,Serializable> getOrCreateCacheManagerMetaInfoMap(String cacheManagerName)
org.terracotta.toolkit.concurrent.locks.ToolkitLock getSoftLockWriteLock(String cacheManagerName, String cacheName, TransactionID transactionID, Object key)
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)
void removeNonStopConfigforCache(Ehcache cache)
org.terracotta.toolkit.concurrent.locks.ToolkitLock getLockForCache(Ehcache cache, String lockName)
org.terracotta.toolkit.events.ToolkitNotifier<CacheDisposalNotification> getOrCreateCacheDisposalNotifier(Ehcache cache)
WanAwareToolkitCache<String,Serializable> getOrCreateWanAwareToolkitCache(String cacheManagerName, String cacheName, CacheConfiguration ehcacheConfig, boolean masterCache, boolean bidirectional)
WanAwareToolkitCachevoid waitForOrchestrator(String cacheManagerName)
void linkClusteredCacheManager(String cacheManagerName, Configuration configuration)
cacheManagerName - the cache manager nameconfiguration - void unlinkCache(String cacheName)
cacheName - the cache nameorg.terracotta.toolkit.internal.collections.ToolkitListInternal getAsyncProcessingBucket(String bucketName, String cacheName)
void clusterRejoined()
Copyright © 2003–2024 Terracotta, Inc.. All rights reserved.