@MXBean public interface JCSJMXBean
Modifier and Type | Method and Description |
---|---|
CacheRegionInfo[] |
buildCacheInfo()
Builds up data on every region.
|
CacheElementInfo[] |
buildElementInfo(String cacheName)
Builds up info about each element in a region.
|
void |
clearAllRegions()
Clears all regions in the cache.
|
void |
clearRegion(String cacheName)
Clears a particular cache region.
|
int |
getByteCount(String cacheName)
Tries to estimate how much data is in a region.
|
void |
removeItem(String cacheName,
String key)
Removes a particular item from a particular region.
|
CacheElementInfo[] buildElementInfo(String cacheName) throws Exception
cacheName
- Exception
CacheRegionInfo[] buildCacheInfo() throws Exception
TODO we need a most light weight method that does not count bytes. The byte counting can really swamp a server.
Exception
int getByteCount(String cacheName)
void clearAllRegions() throws IOException
If this class is running within a remote cache server, clears all regions via the RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears all regions in the cache directly via
the usual cache API.
IOException
void clearRegion(String cacheName) throws IOException
If this class is running within a remote cache server, clears the region via the RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual
cache API.
IOException
void removeItem(String cacheName, String key) throws IOException
If this class is running within a remote cache server, removes the item via the RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual
cache API.
cacheName
- key
- IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.