@MXBean public interface JCSJMXBean
Modifier and Type | Method and Description |
---|---|
List<CacheRegionInfo> |
buildCacheInfo()
Builds up data on every region.
|
List<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.
|
long |
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.
|
List<CacheElementInfo> buildElementInfo(String cacheName) throws IOException
cacheName
- IOException
List<CacheRegionInfo> buildCacheInfo()
TODO we need a most light weight method that does not count bytes. The byte counting can really swamp a server.
long 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–2022 The Apache Software Foundation. All rights reserved.