public class HibernateStatsImpl extends BaseEmitterBean implements HibernateStats
HibernateStats
emitter, sequenceNumberCACHE_ENABLED, CACHE_FLUSHED, CACHE_REGION_CHANGED, CACHE_REGION_FLUSHED, CACHE_STATISTICS_ENABLED, CACHE_STATISTICS_RESET| Constructor and Description |
|---|
HibernateStatsImpl(org.hibernate.SessionFactory sessionFactory)
Constructor accepting the backing
SessionFactory |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats()
Clears statistics, resets all counters to zero
|
void |
disableStats()
Disables statistics collection
|
protected void |
doDispose()
Dispose callback of subclasses
|
void |
enableStats()
Enables statistics collection
|
TabularData |
getCacheRegionStats()
Returns
TabularData of cache region stats |
long |
getCloseStatementCount()
Returns the count of close statements
|
TabularData |
getCollectionStats()
Returns
TabularData of collection stats |
long |
getConnectCount()
Return connect counts
|
long |
getDBSQLExecutionSample()
Not supported right now
|
TabularData |
getEntityStats()
Returns
TabularData of entity stats |
long |
getFlushCount()
Returns flush count
|
MBeanNotificationInfo[] |
getNotificationInfo() |
long |
getOptimisticFailureCount()
Returns Optimistic failure count
|
long |
getPrepareStatementCount()
Returns prepare statement count
|
long |
getQueryExecutionCount()
Returns the query execution count.
|
double |
getQueryExecutionRate()
Returns rate of HQL query executed in the DB
|
long |
getQueryExecutionSample()
Returns last count sample of HQL's getting executed in the DB.
|
TabularData |
getQueryStats()
Returns
TabularData of query stats |
long |
getSessionCloseCount()
Returns session close count
|
long |
getSessionOpenCount()
Returns session open count
|
long |
getSuccessfulTransactionCount()
Returns successful transaction count
|
long |
getTransactionCount()
Returns transaction count
|
boolean |
isStatisticsEnabled()
Returns true if statistics collection is enabled otherwise false
|
void |
setStatisticsEnabled(boolean flag)
Enable/Disable statistics collection
|
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, setImplementationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveNotificationListeneraddNotificationListener, removeNotificationListenerpublic HibernateStatsImpl(org.hibernate.SessionFactory sessionFactory)
throws NotCompliantMBeanException
SessionFactorysessionFactory - NotCompliantMBeanExceptionpublic void clearStats()
clearStats in interface HibernateStatsHibernateStats.clearStats()public void disableStats()
disableStats in interface HibernateStatsHibernateStats.disableStats()public void enableStats()
enableStats in interface HibernateStatsHibernateStats.enableStats()public long getCloseStatementCount()
getCloseStatementCount in interface HibernateStatsHibernateStats.getCloseStatementCount()public long getConnectCount()
getConnectCount in interface HibernateStatsHibernateStats.getConnectCount()public long getDBSQLExecutionSample()
public long getFlushCount()
getFlushCount in interface HibernateStatsHibernateStats.getFlushCount()public long getOptimisticFailureCount()
getOptimisticFailureCount in interface HibernateStatsHibernateStats.getOptimisticFailureCount()public long getPrepareStatementCount()
getPrepareStatementCount in interface HibernateStatsHibernateStats.getPrepareStatementCount()public long getQueryExecutionCount()
getQueryExecutionCount in interface HibernateStatsHibernateStats.getQueryExecutionCount()public double getQueryExecutionRate()
getQueryExecutionRate in interface HibernateStatsHibernateStats.getQueryExecutionRate()public long getQueryExecutionSample()
getQueryExecutionSample in interface HibernateStatsHibernateStats.getQueryExecutionSample()public long getSessionCloseCount()
getSessionCloseCount in interface HibernateStatsHibernateStats.getSessionCloseCount()public long getSessionOpenCount()
getSessionOpenCount in interface HibernateStatsHibernateStats.getSessionOpenCount()public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount in interface HibernateStatsHibernateStats.getSuccessfulTransactionCount()public long getTransactionCount()
getTransactionCount in interface HibernateStatsHibernateStats.getTransactionCount()public boolean isStatisticsEnabled()
isStatisticsEnabled in interface HibernateStatsHibernateStats.isStatisticsEnabled()public void setStatisticsEnabled(boolean flag)
setStatisticsEnabled in interface HibernateStatsHibernateStats.setStatisticsEnabled(boolean)public TabularData getEntityStats()
TabularData of entity statsgetEntityStats in interface HibernateStatsTabularData of entity statsHibernateStats.getEntityStats()public TabularData getCollectionStats()
TabularData of collection statsgetCollectionStats in interface HibernateStatsTabularData of collection statsHibernateStats.getCollectionStats()public TabularData getQueryStats()
TabularData of query statsgetQueryStats in interface HibernateStatsTabularData of query statsHibernateStats.getQueryStats()public TabularData getCacheRegionStats()
TabularData of cache region statsgetCacheRegionStats in interface HibernateStatsTabularData of cache region statsprotected void doDispose()
doDispose in class BaseEmitterBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class BaseEmitterBeanBaseEmitterBean.getNotificationInfo()Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.