|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusteredInstanceFactory
Factory for creating clustered instances
Method Summary | |
---|---|
CacheEventListener |
createEventReplicator(Ehcache cache)
Create a replicator for the cache events of a given cache |
TerracottaStore |
createNonStopStore(Callable<TerracottaStore> store,
Ehcache cache)
Create a NonStopStoreWrapper for a terracottaStore |
Store |
createStore(Ehcache cache)
Create a Store instance for the given cache |
TransactionIDFactory |
createTransactionIDFactory(String uuid,
String cacheManagerName)
Create a TransactionIDFactory |
WriteBehind |
createWriteBehind(Ehcache cache)
Create an WriteBehind instance for the given cache |
boolean |
destroyCache(String cacheManagerName,
String cacheName)
Destroys the specified cache |
void |
enableNonStopForCurrentThread(boolean enable)
Enable or disable NonStop for the current thread only. |
SoftLockManager |
getOrCreateSoftLockManager(Ehcache cache)
Create a SoftLockManager for a cache |
CacheCluster |
getTopology()
Get an api for looking at the clustered node topology. |
String |
getUUID()
Returns a universally unique identifiers for this factory. |
void |
linkClusteredCacheManager(String cacheManagerName,
Configuration configuration)
Links this cache manager to the cluster |
void |
shutdown()
Cleans up any resources left behind after the shutdown of the associated CacheManager |
void |
unlinkCache(String cacheName)
Un-links the cache from its cluster entity |
void |
waitForOrchestrator(String cacheManagerName)
Wait until the Orchestrator is running for the given CacheManager |
Method Detail |
---|
Store createStore(Ehcache cache)
cache
- the cache will backed by the returned store
CacheCluster getTopology()
WriteBehind createWriteBehind(Ehcache cache)
cache
- the cache to which the write behind will be tied
CacheEventListener createEventReplicator(Ehcache cache)
cache
- the cache to which the replicator will be bound
String getUUID()
void enableNonStopForCurrentThread(boolean enable)
enable
- true to enable NonStop, false otherwise.void shutdown()
TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName)
uuid
- a UUID unique to the clustercacheManagerName
- the name of the cache manager creating a TransactionIDFactory
SoftLockManager getOrCreateSoftLockManager(Ehcache cache)
cache
- the cache for which to create a SoftLockManager
TerracottaStore createNonStopStore(Callable<TerracottaStore> store, Ehcache cache)
store
- the store for which to create a NonStopStore
boolean destroyCache(String cacheManagerName, String cacheName)
cacheManagerName
- name of the cache manager the cache belongs tocacheName
- name of the cache
void waitForOrchestrator(String cacheManagerName)
cacheManagerName
- name of the CacheManagervoid linkClusteredCacheManager(String cacheManagerName, Configuration configuration)
cacheManagerName
- the name of the cache managerconfiguration
- the cache manager configurationvoid unlinkCache(String cacheName)
cacheName
- the cache to unlink
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |