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