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 |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
void |
disableStats() |
protected void |
doDispose()
Dispose callback of subclasses
|
void |
enableHibernateStatistics(SessionFactory sessionFactory)
Enable hibernate statistics with the input session factory
|
void |
enableStats() |
void |
flushRegionCache(java.lang.String region) |
void |
flushRegionCaches() |
java.lang.String |
generateActiveConfigDeclaration() |
java.lang.String |
generateActiveConfigDeclaration(java.lang.String region) |
float |
getAverageGetTimeMillis(java.lang.String region) |
long |
getCacheHitCount() |
double |
getCacheHitRate() |
long |
getCacheHitSample() |
long |
getCacheMissCount() |
double |
getCacheMissRate() |
long |
getCacheMissSample() |
long |
getCachePutCount() |
double |
getCachePutRate() |
long |
getCachePutSample() |
javax.management.openmbean.TabularData |
getCacheRegionStats() |
long |
getCloseStatementCount() |
javax.management.openmbean.TabularData |
getCollectionStats() |
long |
getConnectCount() |
javax.management.openmbean.TabularData |
getEntityStats() |
long |
getFlushCount() |
long |
getMaxGetTimeMillis() |
long |
getMaxGetTimeMillis(java.lang.String cacheName) |
long |
getMinGetTimeMillis() |
long |
getMinGetTimeMillis(java.lang.String cacheName) |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
int |
getNumberOfElementsInMemory(java.lang.String region) |
int |
getNumberOfElementsOffHeap(java.lang.String region) |
int |
getNumberOfElementsOnDisk(java.lang.String region) |
long |
getOptimisticFailureCount() |
java.lang.String |
getOriginalConfigDeclaration() |
java.lang.String |
getOriginalConfigDeclaration(java.lang.String region) |
long |
getPrepareStatementCount() |
long |
getQueryExecutionCount() |
double |
getQueryExecutionRate() |
long |
getQueryExecutionSample() |
javax.management.openmbean.TabularData |
getQueryStats() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getRegionCacheAttributes() |
java.util.Map<java.lang.String,java.lang.Object> |
getRegionCacheAttributes(java.lang.String regionName) |
int |
getRegionCacheMaxTTISeconds(java.lang.String region) |
int |
getRegionCacheMaxTTLSeconds(java.lang.String region) |
int |
getRegionCacheOrphanEvictionPeriod(java.lang.String region) |
java.util.Map<java.lang.String,int[]> |
getRegionCacheSamples() |
int |
getRegionCacheTargetMaxInMemoryCount(java.lang.String region) |
int |
getRegionCacheTargetMaxTotalCount(java.lang.String region) |
long |
getSessionCloseCount() |
long |
getSessionOpenCount() |
long |
getSuccessfulTransactionCount() |
java.lang.String[] |
getTerracottaHibernateCacheRegionNames() |
long |
getTransactionCount() |
boolean |
isHibernateStatisticsSupported() |
boolean |
isRegionCacheEnabled(java.lang.String region) |
boolean |
isRegionCacheLoggingEnabled(java.lang.String region) |
boolean |
isRegionCacheOrphanEvictionEnabled(java.lang.String region) |
boolean |
isRegionCachesEnabled() |
boolean |
isStatisticsEnabled() |
boolean |
isTerracottaHibernateCache(java.lang.String region) |
void |
setRegionCacheEnabled(java.lang.String region,
boolean enabled) |
void |
setRegionCacheLoggingEnabled(java.lang.String region,
boolean loggingEnabled) |
void |
setRegionCacheMaxTTISeconds(java.lang.String region,
int maxTTISeconds) |
void |
setRegionCacheMaxTTLSeconds(java.lang.String region,
int maxTTLSeconds) |
void |
setRegionCachesEnabled(boolean enabled) |
void |
setRegionCacheTargetMaxInMemoryCount(java.lang.String region,
int targetMaxInMemoryCount) |
void |
setRegionCacheTargetMaxTotalCount(java.lang.String region,
int targetMaxTotalCount) |
void |
setStatisticsEnabled(boolean flag) |
addNotificationListener, dispose, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotificationcacheMBeanInfo, 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, setImplementationpublic EhcacheHibernate(net.sf.ehcache.CacheManager manager)
throws javax.management.NotCompliantMBeanException
CacheManagermanager - the backing CacheManagerjavax.management.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.EhcacheHibernateMBeanpublic void setStatisticsEnabled(boolean flag)
setStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic void clearStats()
clearStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic void disableStats()
disableStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic void enableStats()
enableStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic void flushRegionCache(java.lang.String region)
flushRegionCache in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void flushRegionCaches()
flushRegionCaches in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic java.lang.String generateActiveConfigDeclaration()
generateActiveConfigDeclaration in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic java.lang.String generateActiveConfigDeclaration(java.lang.String region)
generateActiveConfigDeclaration in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCacheHitCount()
getCacheHitCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic double getCacheHitRate()
getCacheHitRate in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCacheHitSample()
getCacheHitSample in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCacheMissCount()
getCacheMissCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic double getCacheMissRate()
getCacheMissRate in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCacheMissSample()
getCacheMissSample in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCachePutCount()
getCachePutCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic double getCachePutRate()
getCachePutRate in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getCachePutSample()
getCachePutSample in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic javax.management.openmbean.TabularData getCacheRegionStats()
getCacheRegionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getCloseStatementCount()
getCloseStatementCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getCollectionStats()
getCollectionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getConnectCount()
getConnectCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getEntityStats()
getEntityStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getFlushCount()
getFlushCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getOptimisticFailureCount()
getOptimisticFailureCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic java.lang.String getOriginalConfigDeclaration()
getOriginalConfigDeclaration in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic java.lang.String getOriginalConfigDeclaration(java.lang.String region)
getOriginalConfigDeclaration in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getPrepareStatementCount()
getPrepareStatementCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getQueryExecutionCount()
getQueryExecutionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic double getQueryExecutionRate()
getQueryExecutionRate in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getQueryExecutionSample()
getQueryExecutionSample in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getQueryStats()
getQueryStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getRegionCacheAttributes()
getRegionCacheAttributes in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic java.util.Map<java.lang.String,java.lang.Object> getRegionCacheAttributes(java.lang.String regionName)
getRegionCacheAttributes in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getRegionCacheMaxTTISeconds(java.lang.String region)
getRegionCacheMaxTTISeconds in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getRegionCacheMaxTTLSeconds(java.lang.String region)
getRegionCacheMaxTTLSeconds in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getRegionCacheOrphanEvictionPeriod(java.lang.String region)
getRegionCacheOrphanEvictionPeriod in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic java.util.Map<java.lang.String,int[]> getRegionCacheSamples()
getRegionCacheSamples in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getRegionCacheTargetMaxInMemoryCount(java.lang.String region)
getRegionCacheTargetMaxInMemoryCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getRegionCacheTargetMaxTotalCount(java.lang.String region)
getRegionCacheTargetMaxTotalCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getSessionCloseCount()
getSessionCloseCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getSessionOpenCount()
getSessionOpenCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getSuccessfulTransactionCount()
getSuccessfulTransactionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic java.lang.String[] getTerracottaHibernateCacheRegionNames()
getTerracottaHibernateCacheRegionNames in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic long getTransactionCount()
getTransactionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic boolean isRegionCacheEnabled(java.lang.String region)
isRegionCacheEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCachesEnabled(boolean enabled)
setRegionCachesEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheEnabled(java.lang.String region,
boolean enabled)
setRegionCacheEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic boolean isRegionCacheLoggingEnabled(java.lang.String region)
isRegionCacheLoggingEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic boolean isRegionCacheOrphanEvictionEnabled(java.lang.String region)
isRegionCacheOrphanEvictionEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic boolean isRegionCachesEnabled()
isRegionCachesEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic boolean isTerracottaHibernateCache(java.lang.String region)
isTerracottaHibernateCache in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheLoggingEnabled(java.lang.String region,
boolean loggingEnabled)
setRegionCacheLoggingEnabled in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheMaxTTISeconds(java.lang.String region,
int maxTTISeconds)
setRegionCacheMaxTTISeconds in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheMaxTTLSeconds(java.lang.String region,
int maxTTLSeconds)
setRegionCacheMaxTTLSeconds in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheTargetMaxInMemoryCount(java.lang.String region,
int targetMaxInMemoryCount)
setRegionCacheTargetMaxInMemoryCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic void setRegionCacheTargetMaxTotalCount(java.lang.String region,
int targetMaxTotalCount)
setRegionCacheTargetMaxTotalCount in interface net.sf.ehcache.hibernate.management.api.EhcacheStatspublic int getNumberOfElementsInMemory(java.lang.String region)
getNumberOfElementsInMemory in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getNumberOfElementsInMemory(java.lang.String)public int getNumberOfElementsOffHeap(java.lang.String region)
getNumberOfElementsOffHeap in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getNumberOfElementsInMemory(java.lang.String)public int getNumberOfElementsOnDisk(java.lang.String region)
getNumberOfElementsOnDisk in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getNumberOfElementsOnDisk(java.lang.String)public long getMaxGetTimeMillis()
getMaxGetTimeMillis in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getMaxGetTimeMillis()public long getMaxGetTimeMillis(java.lang.String cacheName)
getMaxGetTimeMillis in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getMaxGetTimeMillis(java.lang.String)public long getMinGetTimeMillis()
getMinGetTimeMillis in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getMinGetTimeMillis()public long getMinGetTimeMillis(java.lang.String cacheName)
getMinGetTimeMillis in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getMinGetTimeMillis(java.lang.String)public float getAverageGetTimeMillis(java.lang.String region)
getAverageGetTimeMillis in interface net.sf.ehcache.hibernate.management.api.EhcacheStatsEhcacheStats.getAverageGetTimeMillis(java.lang.String)protected void doDispose()
doDispose in class AbstractEmitterBeanpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class AbstractEmitterBeanAbstractEmitterBean.getNotificationInfo()Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.