EhcacheStats
| Modifier and Type | Field and Description |
|---|---|
| private final CacheManager | |
| private static final long | |
| private static final MBeanNotificationInfo | |
| private final SampledCacheManager | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| cacheManager | back to summary |
|---|---|
| private final CacheManager cacheManager | |
| MILLIS_PER_SECOND | back to summary |
|---|---|
| private static final long MILLIS_PER_SECOND | |
| NOTIFICATION_INFO | back to summary |
|---|---|
| private static final MBeanNotificationInfo NOTIFICATION_INFO | |
| sampledCacheManager | back to summary |
|---|---|
| private final SampledCacheManager sampledCacheManager | |
| statsSince | back to summary |
|---|---|
| private long statsSince | |
| EhcacheStatsImpl | back to summary |
|---|---|
| public EhcacheStatsImpl(CacheManager manager) throws NotCompliantMBeanException Constructor accepting the backing | |
| doDispose | back to summary |
|---|---|
| protected void doDispose() Implements abstract net. Doc from net. Dispose callback of subclasses
| |
| flushRegionCache | back to summary |
|---|---|
| public void flushRegionCache(String region) Implements net. Doc from net. Flushes the cache for the input region | |
| flushRegionCaches | back to summary |
|---|---|
| public void flushRegionCaches() Implements net. Doc from net. Flushes all the caches for all the regions | |
| generateActiveConfigDeclaration | back to summary |
|---|---|
| public String generateActiveConfigDeclaration() Implements net. Doc from net. Returns the currently active cache configuration
| |
| generateActiveConfigDeclaration | back to summary |
|---|---|
| public String generateActiveConfigDeclaration(String region) Implements net. Doc from net. Returns the currently active cache configuration for the supplied region
| |
| getAverageGetTimeMillis | back to summary |
|---|---|
| public float getAverageGetTimeMillis(String region) Implements net. Doc from net. Return average time taken in milliseconds for a get operation for the input cache name
| |
| getCacheHitCount | back to summary |
|---|---|
| public long getCacheHitCount() Implements net. Doc from net. Returns hit count for all the caches
| |
| getCacheHitRate | back to summary |
|---|---|
| public double getCacheHitRate() Implements net. Doc from net. Returns hit rate for all the caches
| |
| getCacheHitSample | back to summary |
|---|---|
| public long getCacheHitSample() Implements net. Doc from net. Returns hit count sample for all the caches
| |
| getCacheMissCount | back to summary |
|---|---|
| public long getCacheMissCount() Implements net. Doc from net. Returns miss count for all the caches
| |
| getCacheMissRate | back to summary |
|---|---|
| public double getCacheMissRate() Implements net. Doc from net. Returns miss rate for all the caches
| |
| getCacheMissSample | back to summary |
|---|---|
| public long getCacheMissSample() Implements net. Doc from net. Returns miss count sample for all the caches
| |
| getCachePutCount | back to summary |
|---|---|
| public long getCachePutCount() Implements net. Doc from net. Returns put count for all the caches
| |
| getCachePutRate | back to summary |
|---|---|
| public double getCachePutRate() Implements net. Doc from net. Returns put rate for all the caches
| |
| getCachePutSample | back to summary |
|---|---|
| public long getCachePutSample() Implements net. Doc from net. Returns put count sample for all the caches
| |
| getMaxGetTimeMillis | back to summary |
|---|---|
| public long getMaxGetTimeMillis() Implements net. Doc from net. Return maximum time taken in milliseconds for a get operation
| |
| getMaxGetTimeMillis | back to summary |
|---|---|
| public long getMaxGetTimeMillis(String cacheName) Implements net. Doc from net. Return maximum time taken in milliseconds for a get operation for the input cache name
| |
| getMinGetTimeMillis | back to summary |
|---|---|
| public long getMinGetTimeMillis() Implements net. Doc from net. Return minimum time taken for a get operation in the cache in milliseconds
| |
| getMinGetTimeMillis | back to summary |
|---|---|
| public long getMinGetTimeMillis(String cacheName) Implements net. Doc from net. Return minimum time taken in milliseconds for a get operation for the input cache name
| |
| getNotificationInfo | back to summary |
|---|---|
| public MBeanNotificationInfo[] getNotificationInfo() Implements abstract net. Implements javax. Doc from javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.
| |
| getNumberOfElementsInMemory | back to summary |
|---|---|
| public int getNumberOfElementsInMemory(String region) Implements net. Doc from net. Returns number of elements in-memory in the cache for the input region
| |
| getNumberOfElementsOffHeap | back to summary |
|---|---|
| public int getNumberOfElementsOffHeap(String region) Implements net. Doc from net. Returns number of elements off-heap in the cache for the input region
| |
| getNumberOfElementsOnDisk | back to summary |
|---|---|
| public int getNumberOfElementsOnDisk(String region) Implements net. Doc from net. Returns number of elements on-disk in the cache for the input region
| |
| getOriginalConfigDeclaration | back to summary |
|---|---|
| public String getOriginalConfigDeclaration() Implements net. Doc from net. Get the original cache configuration
| |
| getOriginalConfigDeclaration | back to summary |
|---|---|
| public String getOriginalConfigDeclaration(String region) Implements net. Doc from net. Returns the original cache configuration for the supplied region | |
| getRegionCacheAttributes | back to summary |
|---|---|
| public Map Implements net. Doc from net. Returns a map containing mapping of all cache region names to their attributes | |
| getRegionCacheAttributes | back to summary |
|---|---|
| public Map Implements net. Doc from net. Returns a map containing attributes of the cache for the input cache region name | |
| getRegionCacheMaxTTISeconds | back to summary |
|---|---|
| public int getRegionCacheMaxTTISeconds(String region) Implements net. Doc from net. Returns the time to idle for the input cache region
| |
| getRegionCacheMaxTTLSeconds | back to summary |
|---|---|
| public int getRegionCacheMaxTTLSeconds(String region) Implements net. Doc from net. Returns the time to live for the input cache region
| |
| getRegionCacheOrphanEvictionPeriod | back to summary |
|---|---|
| public int getRegionCacheOrphanEvictionPeriod(String region) Implements net. Doc from net. Returns the orphan eviction period for the input cache region.
| |
| getRegionCacheSamples | back to summary |
|---|---|
| public Map Implements net. Doc from net. Returns a map containing mapping between cache names and an array containing hit, miss and put count samples | |
| getRegionCacheTargetMaxInMemoryCount | back to summary |
|---|---|
| public int getRegionCacheTargetMaxInMemoryCount(String region) Implements net. Doc from net. Returns the maxElementsInMemory of the input cache region
| |
| getRegionCacheTargetMaxTotalCount | back to summary |
|---|---|
| public int getRegionCacheTargetMaxTotalCount(String region) Implements net. Doc from net. Returns the maxElementsOnDisk of the input cache region
| |
| getTerracottaHibernateCacheRegionNames | back to summary |
|---|---|
| public String[] getTerracottaHibernateCacheRegionNames() Implements net. Doc from net. Returns the region names which are clustered with terracotta
| |
| isRegionCacheEnabled | back to summary |
|---|---|
| public boolean isRegionCacheEnabled(String region) Implements net. Doc from net. Returns true if cache is enabled for the input region
| |
| isRegionCacheLoggingEnabled | back to summary |
|---|---|
| public boolean isRegionCacheLoggingEnabled(String region) Implements net. Doc from net. Returns true if logging is enabled for the input cache region
| |
| isRegionCacheOrphanEvictionEnabled | back to summary |
|---|---|
| public boolean isRegionCacheOrphanEvictionEnabled(String region) Implements net. Doc from net. Returns true if orphan eviction is enabled for the region otherwise false
| |
| isRegionCachesEnabled | back to summary |
|---|---|
| public boolean isRegionCachesEnabled() Implements net. Doc from net. Returns true if all the cache regions are enabled. If even one cache is disabled, it will return false
| |
| isTerracottaHibernateCache | back to summary |
|---|---|
| public boolean isTerracottaHibernateCache(String region) Implements net. Doc from net. Returns true if the input region is clustered with terracotta
| |
| setRegionCacheEnabled | back to summary |
|---|---|
| public void setRegionCacheEnabled(String region, boolean enabled) Implements net. Doc from net. Enables/disables a particular region | |
| setRegionCacheLoggingEnabled | back to summary |
|---|---|
| public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled) Implements net. Doc from net. Enable/Disable logging for the input cache region | |
| setRegionCacheMaxTTISeconds | back to summary |
|---|---|
| public void setRegionCacheMaxTTISeconds(String region, int maxTTISeconds) Implements net. Doc from net. Sets the time to idle for the input cache region
| |
| setRegionCacheMaxTTLSeconds | back to summary |
|---|---|
| public void setRegionCacheMaxTTLSeconds(String region, int maxTTLSeconds) Implements net. Doc from net. Sets the time to live for the input cache region | |
| setRegionCachesEnabled | back to summary |
|---|---|
| public void setRegionCachesEnabled(final boolean flag) Implements net. Doc from net. Enable/disable all the cache regions. | |
| setRegionCacheTargetMaxInMemoryCount | back to summary |
|---|---|
| public void setRegionCacheTargetMaxInMemoryCount(String region, int targetMaxInMemoryCount) Implements net. Doc from net. Sets the maxElementsInMemory of the input cache region | |
| setRegionCacheTargetMaxTotalCount | back to summary |
|---|---|
| public void setRegionCacheTargetMaxTotalCount(String region, int targetMaxTotalCount) Implements net. Doc from net. Sets the maxElementsOnDisk of the input cache region | |