ClusteredInstanceFactory implementation that delegates all operations to an underlying delegate except for the following
operations:
getTopology() : Delegates to the TerracottaClient#getCacheCluster()| Modifier and Type | Field and Description |
|---|---|
| private final TerracottaClient | |
| private final ClusteredInstanceFactory |
| Access | Constructor and Description |
|---|---|
| public | ClusteredInstanceFactoryWrapper(TerracottaClient client, ClusteredInstanceFactory delegate)
Constructor accepting the TerracottaClient and the actual factory |
| Modifier and Type | Method and Description |
|---|---|
| public CacheEventListener | createEventReplicator(Ehcache
the cache to which the replicator will be bound cache)Implements net. |
| public ManagementEventSink | createEventSink()
Implements net. |
| public TerracottaStore | createNonStopStore(Callable<TerracottaStore>
the store for which to create a NonStopStore store, Ehcache cache)Implements net. |
| public Store | createStore(Ehcache
the cache will backed by the returned store cache)Implements net. |
| public TransactionIDFactory | createTransactionIDFactory(String
a UUID unique to the cluster uuid, String the name of the cache manager creating a TransactionIDFactory cacheManagerName)Implements net. |
| public WriteBehind | createWriteBehind(Ehcache
the cache to which the write behind will be tied cache)Implements net. |
| public boolean | destroyCache(final String
name of the cache manager the cache belongs to cacheManagerName, final String name of the cache cacheName)Implements net. |
| public void | enableNonStopForCurrentThread(boolean
true to enable NonStop, false otherwise. enable)Implements net. |
| protected ClusteredInstanceFactory | |
| public SoftLockManager | getOrCreateSoftLockManager(Ehcache
the cache for which to create a SoftLockManager cache)Implements net. |
| public CacheCluster | getTopology()
Implements net. |
| public String | getUUID()
Implements net. |
| public void | linkClusteredCacheManager(String
the name of the cache manager cacheManagerName, Configuration the cache manager configuration configuration)Implements net. |
| public void | shutdown()
Implements net. |
| public void | unlinkCache(String
the cache to unlink cacheName)Implements net. |
| public void | waitForOrchestrator(String
name of the CacheManager cacheManagerName)Implements net. |
| client | back to summary |
|---|---|
| private final TerracottaClient client | |
| delegate | back to summary |
|---|---|
| private final ClusteredInstanceFactory delegate | |
| ClusteredInstanceFactoryWrapper | back to summary |
|---|---|
| public ClusteredInstanceFactoryWrapper(TerracottaClient client, ClusteredInstanceFactory delegate) Constructor accepting the TerracottaClient and the actual factory | |
| createEventReplicator | back to summary |
|---|---|
| public CacheEventListener createEventReplicator(Ehcache cache) Implements net. Doc from net. Create a replicator for the cache events of a given cache
| |
| createEventSink | back to summary |
|---|---|
| public ManagementEventSink createEventSink() Implements net. Doc from net. Create a management event sink
| |
| createNonStopStore | back to summary |
|---|---|
| public TerracottaStore createNonStopStore(Callable<TerracottaStore> store, Ehcache cache) Implements net. Doc from net. Create a NonStopStoreWrapper for a terracottaStore
| |
| createStore | back to summary |
|---|---|
| public Store createStore(Ehcache cache) Implements net. Doc from net. Create a Store instance for the given cache | |
| createTransactionIDFactory | back to summary |
|---|---|
| public TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName) Implements net. Doc from net. Create a TransactionIDFactory
| |
| createWriteBehind | back to summary |
|---|---|
| public WriteBehind createWriteBehind(Ehcache cache) Implements net. Doc from net. Create an WriteBehind instance for the given cache
| |
| destroyCache | back to summary |
|---|---|
| public boolean destroyCache(final String cacheManagerName, final String cacheName) Implements net. Doc from net. Destroys the specified cache | |
| enableNonStopForCurrentThread | back to summary |
|---|---|
| public void enableNonStopForCurrentThread(boolean enable) Implements net. Doc from net. Enable or disable NonStop for the current thread only.
| |
| getActualFactory | back to summary |
|---|---|
| protected ClusteredInstanceFactory getActualFactory() Returns the actual underlying factory
| |
| getOrCreateSoftLockManager | back to summary |
|---|---|
| public SoftLockManager getOrCreateSoftLockManager(Ehcache cache) Implements net. Doc from net. Create a SoftLockManager for a cache
| |
| getTopology | back to summary |
|---|---|
| public CacheCluster getTopology() Implements net. Doc from net. Get an api for looking at the clustered node topology. | |
| getUUID | back to summary |
|---|---|
| public String getUUID() Implements net. Doc from net. Returns a universally unique identifiers for this factory.
| |
| linkClusteredCacheManager | back to summary |
|---|---|
| public void linkClusteredCacheManager(String cacheManagerName, Configuration configuration) Implements net. Doc from net. Links this cache manager to the cluster
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements net. Doc from net. Cleans up any resources left behind after the shutdown of the associated CacheManager | |
| unlinkCache | back to summary |
|---|---|
| public void unlinkCache(String cacheName) Implements net. Doc from net. Un-links the cache from its cluster entity | |
| waitForOrchestrator | back to summary |
|---|---|
| public void waitForOrchestrator(String cacheManagerName) Implements net. Doc from net. Wait until the Orchestrator is running for the given CacheManager
| |