|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.remote.RemoteCacheManager
An instance of RemoteCacheManager corresponds to one remote connection of a specific host and port. All RemoteCacheManager instances are monitored by the singleton RemoteCacheMonitor monitoring daemon for error detection and recovery.
Field Summary |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Method Summary | |
void |
addRemoteCacheListener(IRemoteCacheAttributes cattr,
IRemoteCacheListener listener)
Adds the remote cache listener to the underlying cache-watch service. |
void |
fixCaches(IRemoteCacheService remoteService,
IRemoteCacheObserver remoteWatch)
Fixes up all the caches managed by this cache manager. |
void |
freeCache(java.lang.String name)
Description of the Method |
AuxiliaryCache |
getCache(IRemoteCacheAttributes cattr)
Gets a RemoteCacheNoWait from the RemoteCacheManager. |
AuxiliaryCache |
getCache(java.lang.String cacheName)
Returns a remote cache for the given cache name. |
int |
getCacheType()
Gets the cacheType attribute of the RemoteCacheManager object |
IRemoteCacheAttributes |
getDefaultCattr()
Gets the defaultCattr attribute of the RemoteCacheManager object |
static RemoteCacheManager |
getInstance(IRemoteCacheAttributes cattr,
ICompositeCacheManager cacheMgr)
Returns an instance of RemoteCacheManager for the given connection parameters. |
java.lang.String |
getStats()
Gets the stats attribute of the RemoteCacheManager object |
void |
release()
Description of the Method |
void |
removeRemoteCacheListener(IRemoteCacheAttributes cattr)
|
void |
removeRemoteCacheListener(IRemoteCacheAttributes cattr,
IRemoteCacheListener listener)
Removes a listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public IRemoteCacheAttributes getDefaultCattr()
public void addRemoteCacheListener(IRemoteCacheAttributes cattr, IRemoteCacheListener listener) throws java.io.IOException
cattr
- The feature to be added to the RemoteCacheListener attributelistener
- The feature to be added to the RemoteCacheListener attribute
java.io.IOException
public void removeRemoteCacheListener(IRemoteCacheAttributes cattr, IRemoteCacheListener listener) throws java.io.IOException
cattr
- listener
-
java.io.IOException
public void removeRemoteCacheListener(IRemoteCacheAttributes cattr) throws java.io.IOException
cattr
-
java.io.IOException
public static RemoteCacheManager getInstance(IRemoteCacheAttributes cattr, ICompositeCacheManager cacheMgr)
cattr
- cacheMgr
-
public AuxiliaryCache getCache(java.lang.String cacheName)
getCache
in interface AuxiliaryCacheManager
cacheName
-
public AuxiliaryCache getCache(IRemoteCacheAttributes cattr)
cattr
-
public void freeCache(java.lang.String name) throws java.io.IOException
name
-
java.io.IOException
public java.lang.String getStats()
public void release()
public void fixCaches(IRemoteCacheService remoteService, IRemoteCacheObserver remoteWatch)
remoteService
- remoteWatch
- public int getCacheType()
getCacheType
in interface ICacheType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |