org.terracotta.modules.ehcache.store
Class TerracottaClusteredInstanceFactory

java.lang.Object
  extended by org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory
All Implemented Interfaces:
ClusteredInstanceFactory
Direct Known Subclasses:
StandaloneTerracottaClusteredInstanceFactory

public class TerracottaClusteredInstanceFactory
extends Object
implements ClusteredInstanceFactory


Field Summary
protected  BulkLoadShutdownHook bulkLoadShutdownHook
           
static String DEFAULT_CACHE_MANAGER_NAME
           
static org.slf4j.Logger LOGGER
           
protected  ToolkitInstanceFactory toolkitInstanceFactory
           
protected  CacheCluster topology
           
 
Constructor Summary
TerracottaClusteredInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration)
           
 
Method Summary
protected  AsyncCoordinatorFactory createAsyncCoordinatorFactory()
           
 CacheEventListener createEventReplicator(Ehcache cache)
           
 TerracottaStore createNonStopStore(Callable<TerracottaStore> store, Ehcache cache)
           
 Store createStore(Ehcache cache)
           
protected  ToolkitInstanceFactory createToolkitInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration)
           
 TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName)
           
 WriteBehind createWriteBehind(Ehcache cache)
           
 boolean destroyCache(String cacheManagerName, String cacheName)
           
 SoftLockManager getOrCreateSoftLockManager(Ehcache cache)
           
static String getToolkitMapNameForCache(String cacheManagerName, String cacheName)
           
 CacheCluster getTopology()
           
 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.
protected  ClusteredStore newStore(Ehcache cache)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TerracottaClusteredInstanceFactory

public TerracottaClusteredInstanceFactory(TerracottaClientConfiguration terracottaClientConfiguration)
Method Detail

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.