public class TerracottaClusteredInstanceFactory extends Object implements ClusteredInstanceFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CACHE_MANAGER_NAME |
static org.slf4j.Logger |
LOGGER |
protected ToolkitInstanceFactory |
toolkitInstanceFactory |
protected CacheCluster |
topology |
| Constructor and Description |
|---|
TerracottaClusteredInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration,
ClassLoader loader) |
public static final org.slf4j.Logger LOGGER
public static final String DEFAULT_CACHE_MANAGER_NAME
protected final ToolkitInstanceFactory toolkitInstanceFactory
protected final CacheCluster topology
public TerracottaClusteredInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration, ClassLoader loader)
protected ToolkitInstanceFactory createToolkitInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration, ClassLoader loader)
protected AsyncCoordinatorFactory createAsyncCoordinatorFactory()
public final Store createStore(Ehcache cache)
createStore in interface ClusteredInstanceFactoryprotected ClusteredStore newStore(Ehcache cache)
public final TerracottaStore createNonStopStore(Callable<TerracottaStore> store, Ehcache cache)
createNonStopStore in interface ClusteredInstanceFactorypublic CacheCluster getTopology()
getTopology in interface ClusteredInstanceFactorypublic WriteBehind createWriteBehind(Ehcache cache)
createWriteBehind in interface ClusteredInstanceFactorypublic CacheEventListener createEventReplicator(Ehcache cache)
createEventReplicator in interface ClusteredInstanceFactorypublic String getUUID()
getUUID in interface ClusteredInstanceFactorypublic void enableNonStopForCurrentThread(boolean enable)
enableNonStopForCurrentThread in interface ClusteredInstanceFactorypublic void shutdown()
shutdown in interface ClusteredInstanceFactorypublic TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName)
createTransactionIDFactory in interface ClusteredInstanceFactorypublic SoftLockManager getOrCreateSoftLockManager(Ehcache cache)
getOrCreateSoftLockManager in interface ClusteredInstanceFactorypublic boolean destroyCache(String cacheManagerName, String cacheName)
destroyCache in interface ClusteredInstanceFactorypublic void linkClusteredCacheManager(String cacheManagerName, Configuration configuration)
linkClusteredCacheManager in interface ClusteredInstanceFactorypublic void unlinkCache(String cacheName)
unlinkCache in interface ClusteredInstanceFactorypublic ManagementEventSink createEventSink()
createEventSink in interface ClusteredInstanceFactorypublic static String getToolkitMapNameForCache(String cacheManagerName, String cacheName)
public void waitForOrchestrator(String cacheManagerName)
waitForOrchestrator in interface ClusteredInstanceFactoryCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.