| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EhcacheStats
Interface for ehcache related statistics of hibernate second level cache
| Field Summary | |
|---|---|
| static String | CACHE_ENABLEDCACHE_ENABLED | 
| static String | CACHE_FLUSHEDCACHE_FLUSHED | 
| static String | CACHE_REGION_CHANGEDCACHE_REGION_CHANGED | 
| static String | CACHE_REGION_FLUSHEDCACHE_REGION_FLUSHED | 
| static String | CACHE_STATISTICS_ENABLEDCACHE_STATISTICS_ENABLED | 
| static String | CACHE_STATISTICS_RESETCACHE_STATISTICS_RESET | 
| Method Summary | |
|---|---|
|  void | flushRegionCache(String region)Flushes the cache for the input region | 
|  void | flushRegionCaches()Flushes all the caches for all the regions | 
|  String | generateActiveConfigDeclaration()Returns the currently active cache configuration | 
|  String | generateActiveConfigDeclaration(String region)Returns the currently active cache configuration for the supplied region | 
|  float | getAverageGetTimeMillis(String region)Return average time taken in milliseconds for a get operation for the input cache name | 
|  long | getCacheHitCount()Returns hit count for all the caches | 
|  double | getCacheHitRate()Returns hit rate for all the caches | 
|  long | getCacheHitSample()Returns hit count sample for all the caches | 
|  long | getCacheMissCount()Returns miss count for all the caches | 
|  double | getCacheMissRate()Returns miss rate for all the caches | 
|  long | getCacheMissSample()Returns miss count sample for all the caches | 
|  long | getCachePutCount()Returns put count for all the caches | 
|  double | getCachePutRate()Returns put rate for all the caches | 
|  long | getCachePutSample()Returns put count sample for all the caches | 
|  long | getMaxGetTimeMillis()Return maximum time taken in milliseconds for a get operation | 
|  long | getMaxGetTimeMillis(String cacheName)Return maximum time taken in milliseconds for a get operation for the input cache name | 
|  long | getMinGetTimeMillis()Return minimum time taken for a get operation in the cache in milliseconds | 
|  long | getMinGetTimeMillis(String cacheName)Return minimum time taken in milliseconds for a get operation for the input cache name | 
|  int | getNumberOfElementsInMemory(String region)Returns number of elements in-memory in the cache for the input region | 
|  int | getNumberOfElementsOffHeap(String region)Returns number of elements off-heap in the cache for the input region | 
|  int | getNumberOfElementsOnDisk(String region)Returns number of elements on-disk in the cache for the input region | 
|  String | getOriginalConfigDeclaration()Get the original cache configuration | 
|  String | getOriginalConfigDeclaration(String region)Returns the original cache configuration for the supplied region | 
|  Map<String,Map<String,Object>> | getRegionCacheAttributes()Returns a map containing mapping of all cache region names to their attributes | 
|  Map<String,Object> | getRegionCacheAttributes(String regionName)Returns a map containing attributes of the cache for the input cache region name | 
|  int | getRegionCacheMaxTTISeconds(String region)Returns the time to idle for the input cache region | 
|  int | getRegionCacheMaxTTLSeconds(String region)Returns the time to live for the input cache region | 
|  int | getRegionCacheOrphanEvictionPeriod(String region)Returns the orphan eviction period for the input cache region. | 
|  Map<String,int[]> | getRegionCacheSamples()Returns a map containing mapping between cache names and an array containing hit, miss and put count samples | 
|  int | getRegionCacheTargetMaxInMemoryCount(String region)Returns the maxElementsInMemory of the input cache region | 
|  int | getRegionCacheTargetMaxTotalCount(String region)Returns the maxElementsOnDisk of the input cache region | 
|  String[] | getTerracottaHibernateCacheRegionNames()Returns the region names which are clustered with terracotta | 
|  boolean | isRegionCacheEnabled(String region)Returns true if cache is enabled for the input region | 
|  boolean | isRegionCacheLoggingEnabled(String region)Returns true if logging is enabled for the input cache region | 
|  boolean | isRegionCacheOrphanEvictionEnabled(String region)Returns true if orphan eviction is enabled for the region otherwise false | 
|  boolean | isRegionCachesEnabled()Returns true if all the cache regions are enabled. | 
|  boolean | isTerracottaHibernateCache(String region)Returns true if the input region is clustered with terracotta | 
|  void | setRegionCacheEnabled(String region,
                      boolean enabled)Enables/disables a particular region | 
|  void | setRegionCacheLoggingEnabled(String region,
                             boolean loggingEnabled)Enable/Disable logging for the input cache region | 
|  void | setRegionCacheMaxTTISeconds(String region,
                            int maxTTISeconds)Sets the time to idle for the input cache region | 
|  void | setRegionCacheMaxTTLSeconds(String region,
                            int maxTTLSeconds)Sets the time to live for the input cache region | 
|  void | setRegionCachesEnabled(boolean enabled)Enable/disable all the cache regions. | 
|  void | setRegionCacheTargetMaxInMemoryCount(String region,
                                     int targetMaxInMemoryCount)Sets the maxElementsInMemory of the input cache region | 
|  void | setRegionCacheTargetMaxTotalCount(String region,
                                  int targetMaxTotalCount)Sets the maxElementsOnDisk of the input cache region | 
| Methods inherited from interface javax.management.NotificationEmitter | 
|---|
| removeNotificationListener | 
| Methods inherited from interface javax.management.NotificationBroadcaster | 
|---|
| addNotificationListener, getNotificationInfo, removeNotificationListener | 
| Field Detail | 
|---|
static final String CACHE_ENABLED
static final String CACHE_REGION_CHANGED
static final String CACHE_FLUSHED
static final String CACHE_REGION_FLUSHED
static final String CACHE_STATISTICS_ENABLED
static final String CACHE_STATISTICS_RESET
| Method Detail | 
|---|
String getOriginalConfigDeclaration()
String getOriginalConfigDeclaration(String region)
region - for which the configuration is required
String generateActiveConfigDeclaration()
String generateActiveConfigDeclaration(String region)
region - 
boolean isTerracottaHibernateCache(String region)
region - 
String[] getTerracottaHibernateCacheRegionNames()
Map<String,Object> getRegionCacheAttributes(String regionName)
regionName - 
Map<String,Map<String,Object>> getRegionCacheAttributes()
boolean isRegionCacheEnabled(String region)
region - 
void setRegionCacheEnabled(String region,
                           boolean enabled)
region - enabled - boolean isRegionCachesEnabled()
void setRegionCachesEnabled(boolean enabled)
int getRegionCacheMaxTTISeconds(String region)
region - 
void setRegionCacheMaxTTISeconds(String region,
                                 int maxTTISeconds)
region - maxTTISeconds - Returns the time to idle for the input cache regionint getRegionCacheMaxTTLSeconds(String region)
region - 
void setRegionCacheMaxTTLSeconds(String region,
                                 int maxTTLSeconds)
region - maxTTLSeconds - int getRegionCacheTargetMaxInMemoryCount(String region)
region - 
void setRegionCacheTargetMaxInMemoryCount(String region,
                                          int targetMaxInMemoryCount)
region - targetMaxInMemoryCount - int getRegionCacheTargetMaxTotalCount(String region)
region - 
void setRegionCacheTargetMaxTotalCount(String region,
                                       int targetMaxTotalCount)
region - targetMaxTotalCount - boolean isRegionCacheLoggingEnabled(String region)
region - 
void setRegionCacheLoggingEnabled(String region,
                                  boolean loggingEnabled)
region - loggingEnabled - boolean isRegionCacheOrphanEvictionEnabled(String region)
region - 
int getRegionCacheOrphanEvictionPeriod(String region)
region - 
void flushRegionCache(String region)
region - void flushRegionCaches()
long getCacheHitCount()
long getCacheHitSample()
double getCacheHitRate()
long getCacheMissCount()
long getCacheMissSample()
double getCacheMissRate()
long getCachePutSample()
long getCachePutCount()
double getCachePutRate()
Map<String,int[]> getRegionCacheSamples()
int getNumberOfElementsInMemory(String region)
region - 
int getNumberOfElementsOffHeap(String region)
region - 
int getNumberOfElementsOnDisk(String region)
region - 
long getMinGetTimeMillis()
long getMaxGetTimeMillis()
float getAverageGetTimeMillis(String region)
long getMinGetTimeMillis(String cacheName)
long getMaxGetTimeMillis(String cacheName)
| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||