|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
org.hibernate.cache.ehcache.management.impl.BaseEmitterBean
org.hibernate.cache.ehcache.management.impl.HibernateStatsImpl
public class HibernateStatsImpl
Implementation of HibernateStats
| Field Summary |
|---|
| Fields inherited from class org.hibernate.cache.ehcache.management.impl.BaseEmitterBean |
|---|
emitter, sequenceNumber |
| Fields inherited from interface net.sf.ehcache.hibernate.management.api.HibernateStats |
|---|
CACHE_ENABLED, CACHE_FLUSHED, CACHE_REGION_CHANGED, CACHE_REGION_FLUSHED, CACHE_STATISTICS_ENABLED, CACHE_STATISTICS_RESET |
| Constructor Summary | |
|---|---|
HibernateStatsImpl(SessionFactory sessionFactory)
Constructor accepting the backing SessionFactory |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.hibernate.cache.ehcache.management.impl.BaseEmitterBean |
|---|
addNotificationListener, dispose, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification |
| Methods inherited from class javax.management.StandardMBean |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.management.NotificationEmitter |
|---|
removeNotificationListener |
| Methods inherited from interface javax.management.NotificationBroadcaster |
|---|
addNotificationListener, removeNotificationListener |
| Constructor Detail |
|---|
public HibernateStatsImpl(SessionFactory sessionFactory)
throws NotCompliantMBeanException
SessionFactory
sessionFactory -
NotCompliantMBeanException| Method Detail |
|---|
public void clearStats()
clearStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.clearStats()public void disableStats()
disableStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.disableStats()public void enableStats()
enableStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.enableStats()public long getCloseStatementCount()
getCloseStatementCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getCloseStatementCount()public long getConnectCount()
getConnectCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getConnectCount()public long getDBSQLExecutionSample()
public long getFlushCount()
getFlushCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getFlushCount()public long getOptimisticFailureCount()
getOptimisticFailureCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getOptimisticFailureCount()public long getPrepareStatementCount()
getPrepareStatementCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getPrepareStatementCount()public long getQueryExecutionCount()
getQueryExecutionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getQueryExecutionCount()public double getQueryExecutionRate()
getQueryExecutionRate in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getQueryExecutionRate()public long getQueryExecutionSample()
getQueryExecutionSample in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getQueryExecutionSample()public long getSessionCloseCount()
getSessionCloseCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getSessionCloseCount()public long getSessionOpenCount()
getSessionOpenCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getSessionOpenCount()public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getSuccessfulTransactionCount()public long getTransactionCount()
getTransactionCount in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getTransactionCount()public boolean isStatisticsEnabled()
isStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.isStatisticsEnabled()public void setStatisticsEnabled(boolean flag)
setStatisticsEnabled in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.setStatisticsEnabled(boolean)public TabularData getEntityStats()
getEntityStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getEntityStats()public TabularData getCollectionStats()
getCollectionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getCollectionStats()public TabularData getQueryStats()
getQueryStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsHibernateStats.getQueryStats()public TabularData getCacheRegionStats()
getCacheRegionStats in interface net.sf.ehcache.hibernate.management.api.HibernateStatsprotected void doDispose()
doDispose in class BaseEmitterBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class BaseEmitterBeanBaseEmitterBean.getNotificationInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||