public class EhcacheHibernate extends AbstractEmitterBean implements net.sf.ehcache.hibernate.management.api.EhcacheHibernateMBean
EhcacheHibernateMBean
Constructor and Description |
---|
EhcacheHibernate(net.sf.ehcache.CacheManager manager)
Constructor accepting the backing
CacheManager |
addNotificationListener, dispose, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeNotificationListener
addNotificationListener, removeNotificationListener
public EhcacheHibernate(net.sf.ehcache.CacheManager manager) throws NotCompliantMBeanException
CacheManager
manager
- the backing CacheManager
NotCompliantMBeanException
- if bean doesn't complypublic void enableHibernateStatistics(SessionFactory sessionFactory)
sessionFactory
- the session factory to enable stats forpublic boolean isHibernateStatisticsSupported()
isHibernateStatisticsSupported
in interface net.sf.ehcache.hibernate.management.api.EhcacheHibernateMBean
public void setStatisticsEnabled(boolean flag)
setStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
setStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
isStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void clearStats()
clearStats
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
clearStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void disableStats()
disableStats
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
disableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void enableStats()
enableStats
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
enableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void flushRegionCache(String region)
flushRegionCache
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void flushRegionCaches()
flushRegionCaches
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public String generateActiveConfigDeclaration()
generateActiveConfigDeclaration
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public String generateActiveConfigDeclaration(String region)
generateActiveConfigDeclaration
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCacheHitCount()
getCacheHitCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public double getCacheHitRate()
getCacheHitRate
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCacheHitSample()
getCacheHitSample
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCacheMissCount()
getCacheMissCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public double getCacheMissRate()
getCacheMissRate
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCacheMissSample()
getCacheMissSample
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCachePutCount()
getCachePutCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public double getCachePutRate()
getCachePutRate
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getCachePutSample()
getCachePutSample
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public TabularData getCacheRegionStats()
getCacheRegionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getCloseStatementCount()
getCloseStatementCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getCollectionStats()
getCollectionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getConnectCount()
getConnectCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getEntityStats()
getEntityStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getFlushCount()
getFlushCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getOptimisticFailureCount()
getOptimisticFailureCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public String getOriginalConfigDeclaration()
getOriginalConfigDeclaration
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public String getOriginalConfigDeclaration(String region)
getOriginalConfigDeclaration
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getPrepareStatementCount()
getPrepareStatementCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getQueryExecutionCount()
getQueryExecutionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public double getQueryExecutionRate()
getQueryExecutionRate
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getQueryExecutionSample()
getQueryExecutionSample
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getQueryStats()
getQueryStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public Map<String,Map<String,Object>> getRegionCacheAttributes()
getRegionCacheAttributes
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public Map<String,Object> getRegionCacheAttributes(String regionName)
getRegionCacheAttributes
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getRegionCacheMaxTTISeconds(String region)
getRegionCacheMaxTTISeconds
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getRegionCacheMaxTTLSeconds(String region)
getRegionCacheMaxTTLSeconds
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getRegionCacheOrphanEvictionPeriod(String region)
getRegionCacheOrphanEvictionPeriod
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public Map<String,int[]> getRegionCacheSamples()
getRegionCacheSamples
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getRegionCacheTargetMaxInMemoryCount(String region)
getRegionCacheTargetMaxInMemoryCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getRegionCacheTargetMaxTotalCount(String region)
getRegionCacheTargetMaxTotalCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getSessionCloseCount()
getSessionCloseCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getSessionOpenCount()
getSessionOpenCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public String[] getTerracottaHibernateCacheRegionNames()
getTerracottaHibernateCacheRegionNames
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public long getTransactionCount()
getTransactionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public boolean isRegionCacheEnabled(String region)
isRegionCacheEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCachesEnabled(boolean enabled)
setRegionCachesEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheEnabled(String region, boolean enabled)
setRegionCacheEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public boolean isRegionCacheLoggingEnabled(String region)
isRegionCacheLoggingEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public boolean isRegionCacheOrphanEvictionEnabled(String region)
isRegionCacheOrphanEvictionEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public boolean isRegionCachesEnabled()
isRegionCachesEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public boolean isTerracottaHibernateCache(String region)
isTerracottaHibernateCache
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled)
setRegionCacheLoggingEnabled
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheMaxTTISeconds(String region, int maxTTISeconds)
setRegionCacheMaxTTISeconds
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheMaxTTLSeconds(String region, int maxTTLSeconds)
setRegionCacheMaxTTLSeconds
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheTargetMaxInMemoryCount(String region, int targetMaxInMemoryCount)
setRegionCacheTargetMaxInMemoryCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public void setRegionCacheTargetMaxTotalCount(String region, int targetMaxTotalCount)
setRegionCacheTargetMaxTotalCount
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
public int getNumberOfElementsInMemory(String region)
getNumberOfElementsInMemory
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getNumberOfElementsInMemory(java.lang.String)
public int getNumberOfElementsOffHeap(String region)
getNumberOfElementsOffHeap
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getNumberOfElementsInMemory(java.lang.String)
public int getNumberOfElementsOnDisk(String region)
getNumberOfElementsOnDisk
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getNumberOfElementsOnDisk(java.lang.String)
public long getMaxGetTimeMillis()
getMaxGetTimeMillis
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getMaxGetTimeMillis()
public long getMaxGetTimeMillis(String cacheName)
getMaxGetTimeMillis
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getMaxGetTimeMillis(java.lang.String)
public long getMinGetTimeMillis()
getMinGetTimeMillis
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getMinGetTimeMillis()
public long getMinGetTimeMillis(String cacheName)
getMinGetTimeMillis
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getMinGetTimeMillis(java.lang.String)
public float getAverageGetTimeMillis(String region)
getAverageGetTimeMillis
in interface net.sf.ehcache.hibernate.management.api.EhcacheStats
EhcacheStats.getAverageGetTimeMillis(java.lang.String)
protected void doDispose()
doDispose
in class AbstractEmitterBean
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class AbstractEmitterBean
AbstractEmitterBean.getNotificationInfo()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.