|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SampledCacheManagerMBean
An MBean for CacheManager exposing sampled cache usage statistics
Field Summary | |
---|---|
static java.lang.String |
CACHES_CLEARED
CACHES_CLEARED |
static java.lang.String |
CACHES_ENABLED
CACHES_ENABLED |
static java.lang.String |
STATISTICS_ENABLED
STATISTICS_ENABLED |
static java.lang.String |
STATISTICS_RESET
STATISTICS_RESET |
Method Summary | |
---|---|
void |
clearAll()
Clears the contents of all caches in the CacheManager, but without removing any caches. |
void |
clearStatistics()
Clears statistics of all caches for the associated cacheManager |
void |
disableStatistics()
Disable statistics for each cache contained by cacheManager |
void |
enableStatistics()
Enable statistics for each cache contained by cacheManager |
java.lang.String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
java.lang.String |
generateActiveConfigDeclaration(java.lang.String cacheName)
generateActiveConfigDeclaration |
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
java.util.Map<java.lang.String,long[]> |
getCacheMetrics()
Get a map of cache name to performance metrics (hits, misses). |
long |
getCacheMissRate()
|
java.lang.String[] |
getCacheNames()
Gets the cache names managed by the CacheManager |
long |
getCachePutRate()
|
long |
getCacheUpdateRate()
|
java.lang.String |
getMBeanRegisteredName()
Gets the name used to register this mbean. |
java.lang.String |
getName()
Gets the actual name of the cache manager. |
java.lang.String |
getStatus()
Gets the status attribute of the Ehcache |
boolean |
isEnabled()
Returns if each cache is enabled. |
boolean |
isStatisticsEnabled()
Returns true iff each contained cache has statistics enabled |
void |
setEnabled(boolean enabled)
Enables/disables each cache contained by this CacheManager |
void |
setStatisticsEnabled(boolean enabled)
Enables/disables each contained cache |
void |
shutdown()
Shuts down the CacheManager. |
Field Detail |
---|
static final java.lang.String CACHES_ENABLED
static final java.lang.String CACHES_CLEARED
static final java.lang.String STATISTICS_RESET
static final java.lang.String STATISTICS_ENABLED
Method Detail |
---|
java.lang.String getName()
java.lang.String getMBeanRegisteredName()
java.lang.String getStatus()
void setEnabled(boolean enabled)
enabled
- boolean isEnabled()
void shutdown()
void clearAll()
Ehcache.removeAll()
mehod on each cache is called.
java.lang.String[] getCacheNames() throws java.lang.IllegalStateException
java.lang.IllegalStateException
java.util.Map<java.lang.String,long[]> getCacheMetrics()
long getCacheHitRate()
long getCacheMissRate()
long getCachePutRate()
long getCacheUpdateRate()
long getCacheEvictionRate()
long getCacheExpirationRate()
void clearStatistics()
void enableStatistics()
void disableStatistics()
void setStatisticsEnabled(boolean enabled)
boolean isStatisticsEnabled()
java.lang.String generateActiveConfigDeclaration()
java.lang.String generateActiveConfigDeclaration(java.lang.String cacheName)
cacheName
-
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |