org.terracotta.modules.ehcache.store
Class TerracottaClusteredInstanceFactory
java.lang.Object
org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory
- All Implemented Interfaces:
- ClusteredInstanceFactory
- Direct Known Subclasses:
- StandaloneTerracottaClusteredInstanceFactory
public class TerracottaClusteredInstanceFactory
- extends Object
- implements ClusteredInstanceFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
public static final org.slf4j.Logger LOGGER
DEFAULT_CACHE_MANAGER_NAME
public static final String DEFAULT_CACHE_MANAGER_NAME
- See Also:
- Constant Field Values
toolkitInstanceFactory
protected final ToolkitInstanceFactory toolkitInstanceFactory
topology
protected final CacheCluster topology
bulkLoadShutdownHook
protected final BulkLoadShutdownHook bulkLoadShutdownHook
TerracottaClusteredInstanceFactory
public TerracottaClusteredInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration)
createToolkitInstanceFactory
protected ToolkitInstanceFactory createToolkitInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration)
createAsyncCoordinatorFactory
protected AsyncCoordinatorFactory createAsyncCoordinatorFactory()
createStore
public final Store createStore(Ehcache cache)
- Specified by:
createStore in interface ClusteredInstanceFactory
newStore
protected ClusteredStore newStore(Ehcache cache)
createNonStopStore
public final TerracottaStore createNonStopStore(Callable<TerracottaStore> store,
Ehcache cache)
- Specified by:
createNonStopStore in interface ClusteredInstanceFactory
getTopology
public CacheCluster getTopology()
- Specified by:
getTopology in interface ClusteredInstanceFactory
createWriteBehind
public WriteBehind createWriteBehind(Ehcache cache)
- Specified by:
createWriteBehind in interface ClusteredInstanceFactory
createEventReplicator
public CacheEventListener createEventReplicator(Ehcache cache)
- Specified by:
createEventReplicator in interface ClusteredInstanceFactory
getUUID
public String getUUID()
- This is used by SampledMBeanRegistrationProvider to generate a JMX MBean ObjectName containing the client's uuid so
that it can be associated with the correct connection when tunneled to the L2.
- Specified by:
getUUID in interface ClusteredInstanceFactory
shutdown
public void shutdown()
- Specified by:
shutdown in interface ClusteredInstanceFactory
createTransactionIDFactory
public TransactionIDFactory createTransactionIDFactory(String uuid,
String cacheManagerName)
- Specified by:
createTransactionIDFactory in interface ClusteredInstanceFactory
getOrCreateSoftLockManager
public SoftLockManager getOrCreateSoftLockManager(Ehcache cache)
- Specified by:
getOrCreateSoftLockManager in interface ClusteredInstanceFactory
destroyCache
public boolean destroyCache(String cacheManagerName,
String cacheName)
- Specified by:
destroyCache in interface ClusteredInstanceFactory
getToolkitMapNameForCache
public static String getToolkitMapNameForCache(String cacheManagerName,
String cacheName)
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.