|
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 String |
CACHE_MANAGER_CHANGED
CACHE_MANAGER_CHANGED |
static String |
CACHES_CLEARED
CACHES_CLEARED |
static String |
CACHES_ENABLED
CACHES_ENABLED |
static String |
STATISTICS_ENABLED
STATISTICS_ENABLED |
static 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 |
String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
String |
generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration |
float |
getCacheAverageGetTime()
|
long |
getCacheAverageSearchTime()
|
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
Map<String,long[]> |
getCacheMetrics()
Get a map of cache name to performance metrics (hits, misses). |
long |
getCacheMissRate()
|
String[] |
getCacheNames()
Gets the cache names managed by the CacheManager |
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
boolean |
getHasWriteBehindWriter()
Returns whether any caches are configured for write-behind |
long |
getMaxBytesLocalDisk()
Maximum number of bytes of entries in the disk stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalDiskAsString()
|
long |
getMaxBytesLocalHeap()
Maximum number of bytes of entries in the heap memory stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalHeapAsString()
|
long |
getMaxBytesLocalOffHeap()
Maximum number of bytes of entries in the off-heap stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalOffHeapAsString()
|
String |
getMBeanRegisteredName()
Gets the name used to register this mbean. |
String |
getName()
Gets the actual name of the cache manager. |
boolean |
getSearchable()
|
String |
getStatus()
Gets the status attribute of the Ehcache |
boolean |
getTransactional()
Are any of the caches transactional |
long |
getTransactionCommitRate()
|
long |
getTransactionCommittedCount()
Get the committed transactions count |
long |
getTransactionRollbackRate()
|
long |
getTransactionRolledBackCount()
Get the rolled back transactions count |
long |
getTransactionTimedOutCount()
Get the timed out transactions count. |
int |
getWriterMaxQueueSize()
Maximum elements that can be queued for processing by the write-behind writer |
long |
getWriterQueueLength()
Returns the total length of all write-behind queues across all caches |
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 |
setMaxBytesLocalDisk(long maxBytes)
|
void |
setMaxBytesLocalDiskAsString(String maxBytes)
|
void |
setMaxBytesLocalHeap(long maxBytes)
|
void |
setMaxBytesLocalHeapAsString(String maxBytes)
|
void |
setStatisticsEnabled(boolean enabled)
Enables/disables each contained cache |
void |
shutdown()
Shuts down the CacheManager. |
Field Detail |
---|
static final String CACHE_MANAGER_CHANGED
static final String CACHES_ENABLED
static final String CACHES_CLEARED
static final String STATISTICS_RESET
static final String STATISTICS_ENABLED
Method Detail |
---|
String getName()
String getMBeanRegisteredName()
String getStatus()
void setEnabled(boolean enabled)
enabled
- boolean isEnabled()
void shutdown()
void clearAll()
Ehcache.removeAll()
mehod on each cache is called.
String[] getCacheNames() throws IllegalStateException
IllegalStateException
Map<String,long[]> getCacheMetrics()
long getCacheHitRate()
long getCacheInMemoryHitRate()
long getCacheOffHeapHitRate()
long getCacheOnDiskHitRate()
long getCacheMissRate()
long getCacheInMemoryMissRate()
long getCacheOffHeapMissRate()
long getCacheOnDiskMissRate()
long getCachePutRate()
long getCacheUpdateRate()
long getCacheRemoveRate()
long getCacheEvictionRate()
long getCacheExpirationRate()
float getCacheAverageGetTime()
boolean getSearchable()
long getCacheSearchRate()
long getCacheAverageSearchTime()
void clearStatistics()
void enableStatistics()
void disableStatistics()
void setStatisticsEnabled(boolean enabled)
boolean isStatisticsEnabled()
String generateActiveConfigDeclaration()
String generateActiveConfigDeclaration(String cacheName)
cacheName
-
boolean getTransactional()
CacheConfiguration.TransactionalMode
long getTransactionCommittedCount()
long getTransactionCommitRate()
long getTransactionRolledBackCount()
long getTransactionRollbackRate()
long getTransactionTimedOutCount()
boolean getHasWriteBehindWriter()
long getWriterQueueLength()
int getWriterMaxQueueSize()
long getMaxBytesLocalDisk()
void setMaxBytesLocalDisk(long maxBytes)
maxBytes
- void setMaxBytesLocalDiskAsString(String maxBytes)
maxBytes
- String getMaxBytesLocalDiskAsString()
long getMaxBytesLocalHeap()
String getMaxBytesLocalHeapAsString()
void setMaxBytesLocalHeap(long maxBytes)
maxBytes
- void setMaxBytesLocalHeapAsString(String maxBytes)
maxBytes
- long getMaxBytesLocalOffHeap()
String getMaxBytesLocalOffHeapAsString()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |