Class JCSAdminBean
- All Implemented Interfaces:
- JCSJMXBean
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructorJCSAdminBean(CompositeCacheManager cacheHub) Parameterized constructor
- 
Method SummaryModifier and TypeMethodDescriptionBuilds up data on every region.buildElementInfo(String cacheName) Builds up info about each element in a region.voidClears all regions in the cache.voidclearRegion(String cacheName) Clears a particular cache region.longgetByteCount(String cacheName) Tries to estimate how much data is in a region.<K,V> long getByteCount(CompositeCache<K, V> cache) Tries to estimate how much data is in a region.voidremoveItem(String cacheName, String key) Removes a particular item from a particular region.
- 
Constructor Details- 
JCSAdminBeanpublic JCSAdminBean()Default constructor
- 
JCSAdminBeanParameterized constructor- Parameters:
- cacheHub- the cache manager instance
 
 
- 
- 
Method Details- 
buildElementInfoBuilds up info about each element in a region.- Specified by:
- buildElementInfoin interface- JCSJMXBean
- Parameters:
- cacheName-
- Returns:
- List of CacheElementInfo objects
- Throws:
- IOException
 
- 
buildCacheInfoBuilds up data on every region.TODO we need a most light weight method that does not count bytes. The byte counting can really swamp a server. - Specified by:
- buildCacheInfoin interface- JCSJMXBean
- Returns:
- List of CacheRegionInfo objects
 
- 
getByteCountTries to estimate how much data is in a region. This is expensive. If there are any non serializable objects in the region or an error occurs, suppresses exceptions and returns 0.- Specified by:
- getByteCountin interface- JCSJMXBean
- Returns:
- int The size of the region in bytes.
 
- 
getByteCountTries to estimate how much data is in a region. This is expensive. If there are any non serializable objects in the region or an error occurs, suppresses exceptions and returns 0.- Returns:
- int The size of the region in bytes.
 
- 
clearAllRegionsClears all regions in the cache.If this class is running within a remote cache server, clears all regions via the RemoteCacheServerAPI, so that removes will be broadcast to client machines. Otherwise clears all regions in the cache directly via the usual cache API.- Specified by:
- clearAllRegionsin interface- JCSJMXBean
- Throws:
- IOException
 
- 
clearRegionClears a particular cache region.If this class is running within a remote cache server, clears the region via the RemoteCacheServerAPI, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual cache API.- Specified by:
- clearRegionin interface- JCSJMXBean
- Throws:
- IOException
 
- 
removeItemRemoves a particular item from a particular region.If this class is running within a remote cache server, removes the item via the RemoteCacheServerAPI, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual cache API.- Specified by:
- removeItemin interface- JCSJMXBean
- Parameters:
- cacheName-
- key-
- Throws:
- IOException
 
 
-