|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.remote.server.RemoteCacheClusterManager
Nested Class Summary | |
private static class |
RemoteCacheClusterManager.Location
Location of the RMI registry. |
Field Summary | |
(package private) java.util.Map |
caches
|
private int |
clients
|
(package private) java.lang.String |
host
|
(package private) static java.util.Map |
instances
|
private IRemoteCacheAttributes |
irca
|
private static org.apache.commons.logging.Log |
log
|
private static RemoteCacheClusterMonitor |
monitor
|
(package private) int |
port
|
private IRemoteCacheService |
remoteService
Handle to the remote cache service; or a zombie handle if failed to connect. |
private RemoteCacheWatchRepairable |
remoteWatch
Wrapper of the remote cache watch service; or wrapper of a zombie service if failed to connect. |
(package private) java.lang.String |
service
|
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
private |
RemoteCacheClusterManager(java.lang.String host,
int port,
java.lang.String service)
Constructs an instance to with the given remote connection parameters. |
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 |
ICache |
getCache(IRemoteCacheAttributes cattr)
Gets the cache attribute of the RemoteCacheClusterManager object |
ICache |
getCache(java.lang.String cacheName)
Returns a remote cache for the given cache name. |
int |
getCacheType()
Gets the cacheType attribute of the RemoteCacheClusterManager object |
IRemoteCacheAttributes |
getDefaultCattr()
Gets the defaultCattr attribute of the RemoteCacheClusterManager object |
static RemoteCacheClusterManager |
getInstance(IRemoteCacheAttributes cattr)
Returns an instance of RemoteCacheManager for the given connection parameters. |
void |
release()
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
static final java.util.Map instances
private static RemoteCacheClusterMonitor monitor
private int clients
final java.util.Map caches
final java.lang.String host
final int port
final java.lang.String service
private IRemoteCacheAttributes irca
private IRemoteCacheService remoteService
private RemoteCacheWatchRepairable remoteWatch
Constructor Detail |
private RemoteCacheClusterManager(java.lang.String host, int port, java.lang.String service)
host
- port
- service
- 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 static RemoteCacheClusterManager getInstance(IRemoteCacheAttributes cattr)
public ICache getCache(java.lang.String cacheName)
getCache
in interface ICacheManager
public ICache getCache(IRemoteCacheAttributes cattr)
public void freeCache(java.lang.String name) throws java.io.IOException
java.io.IOException
public void release()
public void fixCaches(IRemoteCacheService remoteService, IRemoteCacheObserver remoteWatch)
public int getCacheType()
getCacheType
in interface ICacheType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |