public abstract class LateralCacheAbstractManager extends java.lang.Object implements ILateralCacheManager
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 ICacheEventLogger |
cacheEventLogger
The event logger.
|
protected java.util.Map |
caches
Each manager instance has caches.
|
protected IElementSerializer |
elementSerializer
The serializer.
|
protected ILateralCacheAttributes |
lca
Configuration
|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
Constructor and Description |
---|
LateralCacheAbstractManager() |
Modifier and Type | Method and Description |
---|---|
void |
addLateralCacheListener(java.lang.String cacheName,
ILateralCacheListener listener)
Adds the lateral cache listener to the underlying cache-watch service.
|
void |
fixCaches(ILateralCacheService lateralService,
ILateralCacheObserver lateralWatch)
Fixes up all the caches managed by this cache manager.
|
abstract AuxiliaryCache |
getCache(java.lang.String cacheName)
Called to access a precreated region or construct one with defaults.
|
java.util.Map |
getCaches()
This is a temporary solution that allows the monitor to get caches from an
instance of a manager.
|
int |
getCacheType()
Gets the cacheType attribute of the LateralCacheManager object
|
java.lang.String |
getStats()
Gets the stats attribute of the LateralCacheManager object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fixService, getInstances
protected final java.util.Map caches
protected ILateralCacheAttributes lca
protected ICacheEventLogger cacheEventLogger
protected IElementSerializer elementSerializer
public void addLateralCacheListener(java.lang.String cacheName, ILateralCacheListener listener) throws java.io.IOException
cacheName
- The feature to be added to the LateralCacheListener attributelistener
- The feature to be added to the LateralCacheListener attributejava.io.IOException
public abstract AuxiliaryCache getCache(java.lang.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 AuxiliaryCacheManager
cacheName
- public int getCacheType()
getCacheType
in interface ICacheType
public java.lang.String getStats()
public void fixCaches(ILateralCacheService lateralService, ILateralCacheObserver lateralWatch)
fixCaches
in interface ILateralCacheManager
lateralService
- lateralWatch
- public java.util.Map getCaches()
ILateralCacheManager
getCaches
in interface ILateralCacheManager
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.