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() |
TabularData |
getCacheRegionStats() |
long |
getCloseStatementCount() |
TabularData |
getCollectionStats() |
long |
getConnectCount() |
long |
getDBSQLExecutionSample()
Deprecated.
DO NOT USE, WILL ONLY THROW AT YOU!
|
TabularData |
getEntityStats() |
long |
getFlushCount() |
MBeanNotificationInfo[] |
getNotificationInfo() |
long |
getOptimisticFailureCount() |
long |
getPrepareStatementCount() |
long |
getQueryExecutionCount() |
double |
getQueryExecutionRate() |
long |
getQueryExecutionSample() |
TabularData |
getQueryStats() |
long |
getSessionCloseCount() |
long |
getSessionOpenCount() |
long |
getSuccessfulTransactionCount() |
long |
getTransactionCount() |
boolean |
isStatisticsEnabled() |
void |
setStatisticsEnabled(boolean flag) |
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 HibernateStatsImpl(SessionFactory sessionFactory) throws NotCompliantMBeanException
SessionFactory
sessionFactory
- the SessionFactory
to source stats fromNotCompliantMBeanException
- thrown from JMX super ctorpublic void clearStats()
clearStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void disableStats()
disableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void enableStats()
enableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getCloseStatementCount()
getCloseStatementCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public long getConnectCount()
getConnectCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
@Deprecated public long getDBSQLExecutionSample()
UnsupportedOperationException
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 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 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 long getTransactionCount()
getTransactionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public void setStatisticsEnabled(boolean flag)
setStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getEntityStats()
getEntityStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getCollectionStats()
getCollectionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getQueryStats()
getQueryStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
public TabularData getCacheRegionStats()
getCacheRegionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
protected void doDispose()
AbstractEmitterBean
doDispose
in class AbstractEmitterBean
public MBeanNotificationInfo[] getNotificationInfo()
AbstractEmitterBean
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class AbstractEmitterBean
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.