|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.terracotta.ClusteredInstanceFactoryWrapper
public class ClusteredInstanceFactoryWrapper
A ClusteredInstanceFactory implementation that delegates all operations to an underlying delegate except for the following
operations:
getTopology() : Delegates to the TerracottaClient.getCacheCluster()
| Constructor Summary | |
|---|---|
ClusteredInstanceFactoryWrapper(TerracottaClient client,
ClusteredInstanceFactory delegate)
Constructor accepting the TerracottaClient and the actual factory |
|
| Method Summary | |
|---|---|
CacheEventListener |
createEventReplicator(Ehcache cache)
Create a replicator for the cache events of a given cache |
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 |
protected ClusteredInstanceFactory |
getActualFactory()
Returns the actual underlying factory |
SoftLockFactory |
getOrCreateSoftLockFactory(Ehcache cache)
Create a SoftLockFactory 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 |
shutdown()
Cleans up any resources left behind after the shutdown of the associated CacheManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusteredInstanceFactoryWrapper(TerracottaClient client,
ClusteredInstanceFactory delegate)
client - delegate - | Method Detail |
|---|
protected ClusteredInstanceFactory getActualFactory()
public CacheCluster getTopology()
getTopology in interface ClusteredInstanceFactorypublic String getUUID()
getUUID in interface ClusteredInstanceFactorypublic CacheEventListener createEventReplicator(Ehcache cache)
createEventReplicator in interface ClusteredInstanceFactorycache - the cache to which the replicator will be bound
public Store createStore(Ehcache cache)
createStore in interface ClusteredInstanceFactorycache - the cache will backed by the returned store
public TransactionIDFactory createTransactionIDFactory(String uuid,
String cacheManagerName)
createTransactionIDFactory in interface ClusteredInstanceFactoryuuid - a UUID unique to the clustercacheManagerName - the name of the cache manager creating a TransactionIDFactory
public WriteBehind createWriteBehind(Ehcache cache)
createWriteBehind in interface ClusteredInstanceFactorycache - the cache to which the write behind will be tied
public SoftLockFactory getOrCreateSoftLockFactory(Ehcache cache)
getOrCreateSoftLockFactory in interface ClusteredInstanceFactorycache - the cache for which to create a SoftLockFactory
public void shutdown()
shutdown in interface ClusteredInstanceFactory
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||