public abstract class LateralCacheAbstractManager extends Object implements ILateralCacheManager, IShutdownObserver
TODO: - need freeCache, release, getStats - need to find an interface Acceptable for all - cache managers or a manager within a type
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,LateralCacheNoWait<?,?>> |
caches
Each manager instance has caches.
|
protected ILateralCacheAttributes |
lca
Configuration
|
| Constructor and Description |
|---|
LateralCacheAbstractManager() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
addLateralCacheListener(String cacheName,
ILateralCacheListener<K,V> listener)
Adds the lateral cache listener to the underlying cache-watch service.
|
void |
fixCaches(ICacheServiceNonLocal<Serializable,Serializable> lateralService,
ILateralCacheObserver lateralWatch)
Fixes up all the caches managed by this cache manager.
|
abstract <K,V> AuxiliaryCache<K,V> |
getCache(String cacheName)
Called to access a pre-created region or construct one with defaults.
|
Map<String,LateralCacheNoWait<?,?>> |
getCaches()
This is a temporary solution that allows the monitor to get caches from an
instance of a manager.
|
String |
getStats()
Gets the stats attribute of the LateralCacheManager object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfixService, getInstancesshutdownprotected final Map<String,LateralCacheNoWait<?,?>> caches
protected ILateralCacheAttributes lca
public <K,V> void addLateralCacheListener(String cacheName, ILateralCacheListener<K,V> listener) throws IOException
cacheName - The feature to be added to the LateralCacheListener attributelistener - The feature to be added to the LateralCacheListener attributeIOExceptionpublic abstract <K,V> AuxiliaryCache<K,V> getCache(String cacheName)
After getting the manager instance for a server, the factory gets a cache for the region name it is constructing.
There should be one manager per server and one cache per region per manager.
getCache in interface AuxiliaryCacheManagercacheName - public String getStats()
public void fixCaches(ICacheServiceNonLocal<Serializable,Serializable> lateralService, ILateralCacheObserver lateralWatch)
fixCaches in interface ILateralCacheManagerlateralService - lateralWatch - public Map<String,LateralCacheNoWait<?,?>> getCaches()
ILateralCacheManagergetCaches in interface ILateralCacheManagerCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.