public class LateralTCPCacheManager extends LateralCacheAbstractManager
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 static java.util.Map |
instances
Address to instance map.
|
protected ITCPLateralCacheAttributes |
lca
ITCPLateralCacheAttributes
|
cacheEventLogger, caches, elementSerializer
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
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.
|
java.lang.Object |
fixService()
The restore calls this on the manger if a cache if found to be in error.
|
AuxiliaryCache |
getCache(java.lang.String cacheName)
Called to access a precreated region or construct one with defaults.
|
static LateralTCPCacheManager |
getInstance(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Returns an instance of the LateralCacheManager.
|
java.util.Map |
getInstances()
This is a temporary solution that allows the monitor to get the instances
of a manager.
|
fixCaches, getCaches, getCacheType, getStats
protected static java.util.Map instances
protected ITCPLateralCacheAttributes lca
public static LateralTCPCacheManager getInstance(ITCPLateralCacheAttributes lca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
lca
- cacheMgr
- this allows the auxiliary to be passed a cache manager.cacheEventLogger
- elementSerializer
- public void addLateralCacheListener(java.lang.String cacheName, ILateralCacheListener listener) throws java.io.IOException
addLateralCacheListener
in class LateralCacheAbstractManager
cacheName
- The feature to be added to the LateralCacheListener attributelistener
- The feature to be added to the LateralCacheListener attributejava.io.IOException
public 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
getCache
in class LateralCacheAbstractManager
cacheName
- public java.util.Map getInstances()
ILateralCacheManager
public java.lang.Object fixService() throws java.io.IOException
ILateralCacheManager
java.io.IOException
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.