public class HibernateStatsImpl extends BaseEmitterBean implements net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats
emitter, sequenceNumber
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()
Not supported right now
|
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
- NotCompliantMBeanException
public void clearStats()
clearStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.clearStats()
public void disableStats()
disableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.disableStats()
public void enableStats()
enableStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.enableStats()
public long getCloseStatementCount()
getCloseStatementCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getCloseStatementCount()
public long getConnectCount()
getConnectCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getConnectCount()
public long getDBSQLExecutionSample()
public long getFlushCount()
getFlushCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getFlushCount()
public long getOptimisticFailureCount()
getOptimisticFailureCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getOptimisticFailureCount()
public long getPrepareStatementCount()
getPrepareStatementCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getPrepareStatementCount()
public long getQueryExecutionCount()
getQueryExecutionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getQueryExecutionCount()
public double getQueryExecutionRate()
getQueryExecutionRate
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getQueryExecutionRate()
public long getQueryExecutionSample()
getQueryExecutionSample
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getQueryExecutionSample()
public long getSessionCloseCount()
getSessionCloseCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getSessionCloseCount()
public long getSessionOpenCount()
getSessionOpenCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getSessionOpenCount()
public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getSuccessfulTransactionCount()
public long getTransactionCount()
getTransactionCount
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getTransactionCount()
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.isStatisticsEnabled()
public void setStatisticsEnabled(boolean flag)
setStatisticsEnabled
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.setStatisticsEnabled(boolean)
public TabularData getEntityStats()
getEntityStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getEntityStats()
public TabularData getCollectionStats()
getCollectionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getCollectionStats()
public TabularData getQueryStats()
getQueryStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
HibernateStats.getQueryStats()
public TabularData getCacheRegionStats()
getCacheRegionStats
in interface net.sf.ehcache.hibernate.management.api.HibernateStats
protected void doDispose()
doDispose
in class BaseEmitterBean
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class BaseEmitterBean
BaseEmitterBean.getNotificationInfo()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.