Class EhcacheHibernate
- java.lang.Object
-
- javax.management.StandardMBean
-
- net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
-
- net.sf.ehcache.hibernate.management.impl.EhcacheHibernate
-
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration,javax.management.NotificationBroadcaster,javax.management.NotificationEmitter,EhcacheHibernateMBean,EhcacheStats,HibernateStats
public class EhcacheHibernate extends BaseEmitterBean implements EhcacheHibernateMBean
Implementation of theEhcacheHibernateMBean- Author:
- Abhishek Sanoujam
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
emitter, sequenceNumber
-
Fields inherited from interface net.sf.ehcache.hibernate.management.api.EhcacheStats
CACHE_ENABLED, CACHE_FLUSHED, CACHE_REGION_CHANGED, CACHE_REGION_FLUSHED, CACHE_STATISTICS_ENABLED, CACHE_STATISTICS_RESET
-
Fields inherited from interface net.sf.ehcache.hibernate.management.api.HibernateStats
CACHE_ENABLED, CACHE_FLUSHED, CACHE_REGION_CHANGED, CACHE_REGION_FLUSHED, CACHE_STATISTICS_ENABLED, CACHE_STATISTICS_RESET
-
-
Constructor Summary
Constructors Constructor Description EhcacheHibernate(CacheManager manager)Constructor accepting the backingCacheManager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStats()Clears statistics, resets all counters to zerovoiddisableStats()Disables statistics collectionprotected voiddoDispose()Dispose callback of subclassesvoidenableHibernateStatistics(org.hibernate.SessionFactory sessionFactory)Enable hibernate statistics with the input session factoryvoidenableStats()Enables statistics collectionvoidflushRegionCache(java.lang.String region)Flushes the cache for the input regionvoidflushRegionCaches()Flushes all the caches for all the regionsjava.lang.StringgenerateActiveConfigDeclaration()Returns the currently active cache configurationjava.lang.StringgenerateActiveConfigDeclaration(java.lang.String region)Returns the currently active cache configuration for the supplied regionfloatgetAverageGetTimeMillis(java.lang.String region)Return average time taken in milliseconds for a get operation for the input cache namelonggetCacheHitCount()Returns hit count for all the cachesdoublegetCacheHitRate()Returns hit rate for all the cacheslonggetCacheHitSample()Returns hit count sample for all the cacheslonggetCacheMissCount()Returns miss count for all the cachesdoublegetCacheMissRate()Returns miss rate for all the cacheslonggetCacheMissSample()Returns miss count sample for all the cacheslonggetCachePutCount()Returns put count for all the cachesdoublegetCachePutRate()Returns put rate for all the cacheslonggetCachePutSample()Returns put count sample for all the cachesjavax.management.openmbean.TabularDatagetCacheRegionStats()ReturnsTabularDataof cache region statslonggetCloseStatementCount()Returns the count of close statementsjavax.management.openmbean.TabularDatagetCollectionStats()ReturnsTabularDataof collection statslonggetConnectCount()Return connect countsjavax.management.openmbean.TabularDatagetEntityStats()ReturnsTabularDataof entity statslonggetFlushCount()Returns flush countlonggetMaxGetTimeMillis()Return maximum time taken in milliseconds for a get operationlonggetMaxGetTimeMillis(java.lang.String cacheName)Return maximum time taken in milliseconds for a get operation for the input cache namelonggetMinGetTimeMillis()Return minimum time taken for a get operation in the cache in millisecondslonggetMinGetTimeMillis(java.lang.String cacheName)Return minimum time taken in milliseconds for a get operation for the input cache namejavax.management.MBeanNotificationInfo[]getNotificationInfo()intgetNumberOfElementsInMemory(java.lang.String region)Returns number of elements in-memory in the cache for the input regionintgetNumberOfElementsOffHeap(java.lang.String region)Returns number of elements off-heap in the cache for the input regionintgetNumberOfElementsOnDisk(java.lang.String region)Returns number of elements on-disk in the cache for the input regionlonggetOptimisticFailureCount()Returns Optimistic failure countjava.lang.StringgetOriginalConfigDeclaration()Get the original cache configurationjava.lang.StringgetOriginalConfigDeclaration(java.lang.String region)Returns the original cache configuration for the supplied regionlonggetPrepareStatementCount()Returns prepare statement countlonggetQueryExecutionCount()Returns the query execution count.doublegetQueryExecutionRate()Returns rate of HQL query executed in the DBlonggetQueryExecutionSample()Returns last count sample of HQL's getting executed in the DB.javax.management.openmbean.TabularDatagetQueryStats()ReturnsTabularDataof query statsjava.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 attributesjava.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 nameintgetRegionCacheMaxTTISeconds(java.lang.String region)Returns the time to idle for the input cache regionintgetRegionCacheMaxTTLSeconds(java.lang.String region)Returns the time to live for the input cache regionintgetRegionCacheOrphanEvictionPeriod(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 samplesintgetRegionCacheTargetMaxInMemoryCount(java.lang.String region)Returns the maxElementsInMemory of the input cache regionintgetRegionCacheTargetMaxTotalCount(java.lang.String region)Returns the maxElementsOnDisk of the input cache regionlonggetSessionCloseCount()Returns session close countlonggetSessionOpenCount()Returns session open countlonggetSuccessfulTransactionCount()Returns successful transaction countjava.lang.String[]getTerracottaHibernateCacheRegionNames()Returns the region names which are clustered with terracottalonggetTransactionCount()Returns transaction countbooleanisHibernateStatisticsSupported()Returns true if hibernate statistics is supported.booleanisRegionCacheEnabled(java.lang.String region)Returns true if cache is enabled for the input regionbooleanisRegionCacheLoggingEnabled(java.lang.String region)Returns true if logging is enabled for the input cache regionbooleanisRegionCacheOrphanEvictionEnabled(java.lang.String region)Returns true if orphan eviction is enabled for the region otherwise falsebooleanisRegionCachesEnabled()Returns true if all the cache regions are enabled.booleanisStatisticsEnabled()Returns true if statistics collection is enabled otherwise falsebooleanisTerracottaHibernateCache(java.lang.String region)Returns true if the input region is clustered with terracottavoidsetRegionCacheEnabled(java.lang.String region, boolean enabled)Enables/disables a particular regionvoidsetRegionCacheLoggingEnabled(java.lang.String region, boolean loggingEnabled)Enable/Disable logging for the input cache regionvoidsetRegionCacheMaxTTISeconds(java.lang.String region, int maxTTISeconds)Sets the time to idle for the input cache regionvoidsetRegionCacheMaxTTLSeconds(java.lang.String region, int maxTTLSeconds)Sets the time to live for the input cache regionvoidsetRegionCachesEnabled(boolean enabled)Enable/disable all the cache regions.voidsetRegionCacheTargetMaxInMemoryCount(java.lang.String region, int targetMaxInMemoryCount)Sets the maxElementsInMemory of the input cache regionvoidsetRegionCacheTargetMaxTotalCount(java.lang.String region, int targetMaxTotalCount)Sets the maxElementsOnDisk of the input cache regionvoidsetStatisticsEnabled(boolean flag)Enable/Disable statistics collection-
Methods inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
addNotificationListener, dispose, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
EhcacheHibernate
public EhcacheHibernate(CacheManager manager) throws javax.management.NotCompliantMBeanException
Constructor accepting the backingCacheManager- Parameters:
manager- the backingCacheManager- Throws:
javax.management.NotCompliantMBeanException
-
-
Method Detail
-
enableHibernateStatistics
public void enableHibernateStatistics(org.hibernate.SessionFactory sessionFactory)
Enable hibernate statistics with the input session factory
-
isHibernateStatisticsSupported
public boolean isHibernateStatisticsSupported()
Returns true if hibernate statistics is supported.It depends on whether the property hibernate.session_factory_name has been specified in the hibernate configuration for the hibernate statistics to be enabled
- Specified by:
isHibernateStatisticsSupportedin interfaceEhcacheHibernateMBean- Returns:
- true if hibernate statistics is supported
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean flag)
Enable/Disable statistics collection- Specified by:
setStatisticsEnabledin interfaceHibernateStats
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
Returns true if statistics collection is enabled otherwise false- Specified by:
isStatisticsEnabledin interfaceHibernateStats- Returns:
- Returns true if statistics collection is enabled otherwise false
-
clearStats
public void clearStats()
Clears statistics, resets all counters to zero- Specified by:
clearStatsin interfaceHibernateStats
-
disableStats
public void disableStats()
Disables statistics collection- Specified by:
disableStatsin interfaceHibernateStats
-
enableStats
public void enableStats()
Enables statistics collection- Specified by:
enableStatsin interfaceHibernateStats
-
flushRegionCache
public void flushRegionCache(java.lang.String region)
Flushes the cache for the input region- Specified by:
flushRegionCachein interfaceEhcacheStats
-
flushRegionCaches
public void flushRegionCaches()
Flushes all the caches for all the regions- Specified by:
flushRegionCachesin interfaceEhcacheStats
-
generateActiveConfigDeclaration
public java.lang.String generateActiveConfigDeclaration()
Returns the currently active cache configuration- Specified by:
generateActiveConfigDeclarationin interfaceEhcacheStats- Returns:
- the currently active cache configuration
-
generateActiveConfigDeclaration
public java.lang.String generateActiveConfigDeclaration(java.lang.String region)
Returns the currently active cache configuration for the supplied region- Specified by:
generateActiveConfigDeclarationin interfaceEhcacheStats- Returns:
- Returns the currently active cache configuration for the supplied region
-
getCacheHitCount
public long getCacheHitCount()
Returns hit count for all the caches- Specified by:
getCacheHitCountin interfaceEhcacheStats- Returns:
- Returns hit count for all the caches
-
getCacheHitRate
public double getCacheHitRate()
Returns hit rate for all the caches- Specified by:
getCacheHitRatein interfaceEhcacheStats- Returns:
- Returns hit rate for all the caches
-
getCacheHitSample
public long getCacheHitSample()
Returns hit count sample for all the caches- Specified by:
getCacheHitSamplein interfaceEhcacheStats- Returns:
- Returns hit count sample for all the caches
-
getCacheMissCount
public long getCacheMissCount()
Returns miss count for all the caches- Specified by:
getCacheMissCountin interfaceEhcacheStats- Returns:
- Returns miss count for all the caches
-
getCacheMissRate
public double getCacheMissRate()
Returns miss rate for all the caches- Specified by:
getCacheMissRatein interfaceEhcacheStats- Returns:
- Returns miss rate for all the caches
-
getCacheMissSample
public long getCacheMissSample()
Returns miss count sample for all the caches- Specified by:
getCacheMissSamplein interfaceEhcacheStats- Returns:
- Returns miss count sample for all the caches
-
getCachePutCount
public long getCachePutCount()
Returns put count for all the caches- Specified by:
getCachePutCountin interfaceEhcacheStats- Returns:
- Returns put count for all the caches
-
getCachePutRate
public double getCachePutRate()
Returns put rate for all the caches- Specified by:
getCachePutRatein interfaceEhcacheStats- Returns:
- Returns put rate for all the caches
-
getCachePutSample
public long getCachePutSample()
Returns put count sample for all the caches- Specified by:
getCachePutSamplein interfaceEhcacheStats- Returns:
- Returns put count sample for all the caches
-
getCacheRegionStats
public javax.management.openmbean.TabularData getCacheRegionStats()
ReturnsTabularDataof cache region stats- Specified by:
getCacheRegionStatsin interfaceHibernateStats- Returns:
- Returns
TabularDataof cache region stats
-
getCloseStatementCount
public long getCloseStatementCount()
Returns the count of close statements- Specified by:
getCloseStatementCountin interfaceHibernateStats- Returns:
- Returns the count of close statementss
-
getCollectionStats
public javax.management.openmbean.TabularData getCollectionStats()
ReturnsTabularDataof collection stats- Specified by:
getCollectionStatsin interfaceHibernateStats- Returns:
- Returns
TabularDataof collection stats
-
getConnectCount
public long getConnectCount()
Return connect counts- Specified by:
getConnectCountin interfaceHibernateStats- Returns:
- Return connect counts
-
getEntityStats
public javax.management.openmbean.TabularData getEntityStats()
ReturnsTabularDataof entity stats- Specified by:
getEntityStatsin interfaceHibernateStats- Returns:
- Returns
TabularDataof entity stats
-
getFlushCount
public long getFlushCount()
Returns flush count- Specified by:
getFlushCountin interfaceHibernateStats- Returns:
- Returns flush count
-
getOptimisticFailureCount
public long getOptimisticFailureCount()
Returns Optimistic failure count- Specified by:
getOptimisticFailureCountin interfaceHibernateStats- Returns:
- Returns Optimistic failure count
-
getOriginalConfigDeclaration
public java.lang.String getOriginalConfigDeclaration()
Get the original cache configuration- Specified by:
getOriginalConfigDeclarationin interfaceEhcacheStats- Returns:
- the original cache configuration
-
getOriginalConfigDeclaration
public java.lang.String getOriginalConfigDeclaration(java.lang.String region)
Returns the original cache configuration for the supplied region- Specified by:
getOriginalConfigDeclarationin interfaceEhcacheStats- Parameters:
region- for which the configuration is required- Returns:
- the original cache configuration for the supplied region
-
getPrepareStatementCount
public long getPrepareStatementCount()
Returns prepare statement count- Specified by:
getPrepareStatementCountin interfaceHibernateStats- Returns:
- Returns prepare statement count
-
getQueryExecutionCount
public long getQueryExecutionCount()
Returns the query execution count. This includes only HQL's- Specified by:
getQueryExecutionCountin interfaceHibernateStats- Returns:
- Returns the query execution count. This includes only HQL's
-
getQueryExecutionRate
public double getQueryExecutionRate()
Returns rate of HQL query executed in the DB- Specified by:
getQueryExecutionRatein interfaceHibernateStats- Returns:
- Returns rate of HQL query executed in the DB
-
getQueryExecutionSample
public long getQueryExecutionSample()
Returns last count sample of HQL's getting executed in the DB.- Specified by:
getQueryExecutionSamplein interfaceHibernateStats- Returns:
- Returns last count sample of HQL's getting executed in the DB.
-
getQueryStats
public javax.management.openmbean.TabularData getQueryStats()
ReturnsTabularDataof query stats- Specified by:
getQueryStatsin interfaceHibernateStats- Returns:
- Returns
TabularDataof query stats
-
getRegionCacheAttributes
public 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- Specified by:
getRegionCacheAttributesin interfaceEhcacheStats- Returns:
- Returns a map containing mapping of all cache region names to their attributes
-
getRegionCacheAttributes
public 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- Specified by:
getRegionCacheAttributesin interfaceEhcacheStats- Returns:
- Returns a map containing attributes of the cache for the input cache region name
-
getRegionCacheMaxTTISeconds
public int getRegionCacheMaxTTISeconds(java.lang.String region)
Returns the time to idle for the input cache region- Specified by:
getRegionCacheMaxTTISecondsin interfaceEhcacheStats- Returns:
- Returns the time to live for the input cache region
-
getRegionCacheMaxTTLSeconds
public int getRegionCacheMaxTTLSeconds(java.lang.String region)
Returns the time to live for the input cache region- Specified by:
getRegionCacheMaxTTLSecondsin interfaceEhcacheStats- Returns:
- Returns the time to live for the input cache region
-
getRegionCacheOrphanEvictionPeriod
public int getRegionCacheOrphanEvictionPeriod(java.lang.String region)
Returns the orphan eviction period for the input cache region.- Specified by:
getRegionCacheOrphanEvictionPeriodin interfaceEhcacheStats- Returns:
- Returns the orphan eviction period for the input cache region.
-
getRegionCacheSamples
public 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- Specified by:
getRegionCacheSamplesin interfaceEhcacheStats- Returns:
- Returns a map containing mapping between cache names and an array containing hit, miss and put count samples
-
getRegionCacheTargetMaxInMemoryCount
public int getRegionCacheTargetMaxInMemoryCount(java.lang.String region)
Returns the maxElementsInMemory of the input cache region- Specified by:
getRegionCacheTargetMaxInMemoryCountin interfaceEhcacheStats- Returns:
- Returns the maxElementsInMemory of the input cache region
-
getRegionCacheTargetMaxTotalCount
public int getRegionCacheTargetMaxTotalCount(java.lang.String region)
Returns the maxElementsOnDisk of the input cache region- Specified by:
getRegionCacheTargetMaxTotalCountin interfaceEhcacheStats- Returns:
- Returns the maxElementsOnDisk of the input cache region
-
getSessionCloseCount
public long getSessionCloseCount()
Returns session close count- Specified by:
getSessionCloseCountin interfaceHibernateStats- Returns:
- Returns session close count
-
getSessionOpenCount
public long getSessionOpenCount()
Returns session open count- Specified by:
getSessionOpenCountin interfaceHibernateStats- Returns:
- Returns session open count
-
getSuccessfulTransactionCount
public long getSuccessfulTransactionCount()
Returns successful transaction count- Specified by:
getSuccessfulTransactionCountin interfaceHibernateStats- Returns:
- Returns successful transaction count
-
getTerracottaHibernateCacheRegionNames
public java.lang.String[] getTerracottaHibernateCacheRegionNames()
Returns the region names which are clustered with terracotta- Specified by:
getTerracottaHibernateCacheRegionNamesin interfaceEhcacheStats- Returns:
- Returns the region names which are clustered with terracotta
-
getTransactionCount
public long getTransactionCount()
Returns transaction count- Specified by:
getTransactionCountin interfaceHibernateStats- Returns:
- Returns transaction count
-
isRegionCacheEnabled
public boolean isRegionCacheEnabled(java.lang.String region)
Returns true if cache is enabled for the input region- Specified by:
isRegionCacheEnabledin interfaceEhcacheStats- Returns:
- Returns true if cache is enabled for the input region
-
setRegionCachesEnabled
public void setRegionCachesEnabled(boolean enabled)
Enable/disable all the cache regions.- Specified by:
setRegionCachesEnabledin interfaceEhcacheStats
-
setRegionCacheEnabled
public void setRegionCacheEnabled(java.lang.String region, boolean enabled)Enables/disables a particular region- Specified by:
setRegionCacheEnabledin interfaceEhcacheStats
-
isRegionCacheLoggingEnabled
public boolean isRegionCacheLoggingEnabled(java.lang.String region)
Returns true if logging is enabled for the input cache region- Specified by:
isRegionCacheLoggingEnabledin interfaceEhcacheStats- Returns:
- Returns true if logging is enabled for the input cache region
-
isRegionCacheOrphanEvictionEnabled
public boolean isRegionCacheOrphanEvictionEnabled(java.lang.String region)
Returns true if orphan eviction is enabled for the region otherwise false- Specified by:
isRegionCacheOrphanEvictionEnabledin interfaceEhcacheStats- Returns:
- Returns true if orphan eviction is enabled for the region otherwise false
-
isRegionCachesEnabled
public boolean isRegionCachesEnabled()
Returns true if all the cache regions are enabled. If even one cache is disabled, it will return false- Specified by:
isRegionCachesEnabledin interfaceEhcacheStats- Returns:
- Returns true if all the cache regions are enabled. If even one cache is disabled, it will return false
-
isTerracottaHibernateCache
public boolean isTerracottaHibernateCache(java.lang.String region)
Returns true if the input region is clustered with terracotta- Specified by:
isTerracottaHibernateCachein interfaceEhcacheStats- Returns:
- Returns true if the input region is clustered with terracotta
-
setRegionCacheLoggingEnabled
public void setRegionCacheLoggingEnabled(java.lang.String region, boolean loggingEnabled)Enable/Disable logging for the input cache region- Specified by:
setRegionCacheLoggingEnabledin interfaceEhcacheStats
-
setRegionCacheMaxTTISeconds
public void setRegionCacheMaxTTISeconds(java.lang.String region, int maxTTISeconds)Sets the time to idle for the input cache region- Specified by:
setRegionCacheMaxTTISecondsin interfaceEhcacheStatsmaxTTISeconds- Returns the time to idle for the input cache region
-
setRegionCacheMaxTTLSeconds
public void setRegionCacheMaxTTLSeconds(java.lang.String region, int maxTTLSeconds)Sets the time to live for the input cache region- Specified by:
setRegionCacheMaxTTLSecondsin interfaceEhcacheStats
-
setRegionCacheTargetMaxInMemoryCount
public void setRegionCacheTargetMaxInMemoryCount(java.lang.String region, int targetMaxInMemoryCount)Sets the maxElementsInMemory of the input cache region- Specified by:
setRegionCacheTargetMaxInMemoryCountin interfaceEhcacheStats
-
setRegionCacheTargetMaxTotalCount
public void setRegionCacheTargetMaxTotalCount(java.lang.String region, int targetMaxTotalCount)Sets the maxElementsOnDisk of the input cache region- Specified by:
setRegionCacheTargetMaxTotalCountin interfaceEhcacheStats
-
getNumberOfElementsInMemory
public int getNumberOfElementsInMemory(java.lang.String region)
Returns number of elements in-memory in the cache for the input region- Specified by:
getNumberOfElementsInMemoryin interfaceEhcacheStats- Returns:
- Returns number of elements in-memory in the cache for the input region
- See Also:
EhcacheStats.getNumberOfElementsInMemory(java.lang.String)
-
getNumberOfElementsOffHeap
public int getNumberOfElementsOffHeap(java.lang.String region)
Returns number of elements off-heap in the cache for the input region- Specified by:
getNumberOfElementsOffHeapin interfaceEhcacheStats- Returns:
- Returns number of elements off-heap in the cache for the input region
- See Also:
EhcacheStats.getNumberOfElementsInMemory(java.lang.String)
-
getNumberOfElementsOnDisk
public int getNumberOfElementsOnDisk(java.lang.String region)
Returns number of elements on-disk in the cache for the input region- Specified by:
getNumberOfElementsOnDiskin interfaceEhcacheStats- Returns:
- Returns number of elements on-disk in the cache for the input region
- See Also:
EhcacheStats.getNumberOfElementsOnDisk(java.lang.String)
-
getMaxGetTimeMillis
public long getMaxGetTimeMillis()
Return maximum time taken in milliseconds for a get operation- Specified by:
getMaxGetTimeMillisin interfaceEhcacheStats- Returns:
- Return maximum time taken in milliseconds for a get operation
- See Also:
EhcacheStats.getMaxGetTimeMillis()
-
getMaxGetTimeMillis
public long getMaxGetTimeMillis(java.lang.String cacheName)
Return maximum time taken in milliseconds for a get operation for the input cache name- Specified by:
getMaxGetTimeMillisin interfaceEhcacheStats- Returns:
- Return maximum time taken in milliseconds for a get operation for the input cache name
- See Also:
EhcacheStats.getMaxGetTimeMillis(java.lang.String)
-
getMinGetTimeMillis
public long getMinGetTimeMillis()
Return minimum time taken for a get operation in the cache in milliseconds- Specified by:
getMinGetTimeMillisin interfaceEhcacheStats- Returns:
- minimum time taken for a get operation in the cache in milliseconds
- See Also:
EhcacheStats.getMinGetTimeMillis()
-
getMinGetTimeMillis
public long getMinGetTimeMillis(java.lang.String cacheName)
Return minimum time taken in milliseconds for a get operation for the input cache name- Specified by:
getMinGetTimeMillisin interfaceEhcacheStats- Returns:
- Return minimum time taken in milliseconds for a get operation for the input cache name
- See Also:
EhcacheStats.getMinGetTimeMillis(java.lang.String)
-
getAverageGetTimeMillis
public float getAverageGetTimeMillis(java.lang.String region)
Return average time taken in milliseconds for a get operation for the input cache name- Specified by:
getAverageGetTimeMillisin interfaceEhcacheStats- Returns:
- Return average time taken in milliseconds for a get operation for the input cache name
- See Also:
EhcacheStats.getAverageGetTimeMillis(java.lang.String)
-
doDispose
protected void doDispose()
Dispose callback of subclasses- Specified by:
doDisposein classBaseEmitterBean
-
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfoin interfacejavax.management.NotificationBroadcaster- Specified by:
getNotificationInfoin classBaseEmitterBean- See Also:
BaseEmitterBean.getNotificationInfo()
-
-