public class HibernateStatsImpl extends AbstractEmitterBean implements net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats
| Constructor and Description |
|---|
HibernateStatsImpl(SessionFactory sessionFactory)
Constructor accepting the backing
SessionFactory |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
void |
disableStats() |
protected void |
doDispose()
Dispose callback of subclasses
|
void |
enableStats() |
javax.management.openmbean.TabularData |
getCacheRegionStats() |
long |
getCloseStatementCount() |
javax.management.openmbean.TabularData |
getCollectionStats() |
long |
getConnectCount() |
long |
getDBSQLExecutionSample()
Deprecated.
DO NOT USE, WILL ONLY THROW AT YOU!
|
javax.management.openmbean.TabularData |
getEntityStats() |
long |
getFlushCount() |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
long |
getOptimisticFailureCount() |
long |
getPrepareStatementCount() |
long |
getQueryExecutionCount() |
double |
getQueryExecutionRate() |
long |
getQueryExecutionSample() |
javax.management.openmbean.TabularData |
getQueryStats() |
long |
getSessionCloseCount() |
long |
getSessionOpenCount() |
long |
getSuccessfulTransactionCount() |
long |
getTransactionCount() |
boolean |
isStatisticsEnabled() |
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 HibernateStatsImpl(SessionFactory sessionFactory) throws javax.management.NotCompliantMBeanException
SessionFactorysessionFactory - the SessionFactory to source stats fromjavax.management.NotCompliantMBeanException - thrown from JMX super ctorpublic 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 long getCloseStatementCount()
getCloseStatementCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getConnectCount()
getConnectCount in interface net.sf.ehcache.hibernate.management.api.HibernateStats@Deprecated public long getDBSQLExecutionSample()
java.lang.UnsupportedOperationExceptionpublic long getFlushCount()
getFlushCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic long getOptimisticFailureCount()
getOptimisticFailureCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic 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 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 long getTransactionCount()
getTransactionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic void setStatisticsEnabled(boolean flag)
setStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getEntityStats()
getEntityStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getCollectionStats()
getCollectionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getQueryStats()
getQueryStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatspublic javax.management.openmbean.TabularData getCacheRegionStats()
getCacheRegionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsprotected void doDispose()
AbstractEmitterBeandoDispose in class AbstractEmitterBeanpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
AbstractEmitterBeangetNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class AbstractEmitterBeanCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.