| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.hibernate.management.impl.NullHibernateStats
public final class NullHibernateStats
Implementation of HibernateStats that does nothing
 
 
| Field Summary | |
|---|---|
static HibernateStats | 
INSTANCE
Singleton instance.  | 
| 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 | 
| Method Summary | |
|---|---|
 void | 
addNotificationListener(NotificationListener listener,
                        NotificationFilter filter,
                        Object handback)
 | 
 void | 
clearStats()
Clears statistics, resets all counters to zero  | 
 void | 
disableStats()
Disables statistics collection  | 
 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 | 
removeNotificationListener(NotificationListener listener)
 | 
 void | 
removeNotificationListener(NotificationListener listener,
                           NotificationFilter filter,
                           Object handback)
 | 
 void | 
setStatisticsEnabled(boolean flag)
Enable/Disable statistics collection  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final HibernateStats INSTANCE
| Method Detail | 
|---|
public 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 TabularData getCollectionStats()
TabularData of collection stats
getCollectionStats in interface HibernateStatsTabularData of collection statsHibernateStats.getCollectionStats()public long getConnectCount()
getConnectCount in interface HibernateStatsHibernateStats.getConnectCount()public long getDBSQLExecutionSample()
public TabularData getEntityStats()
TabularData of entity stats
getEntityStats in interface HibernateStatsTabularData of entity statsHibernateStats.getEntityStats()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 TabularData getQueryStats()
TabularData of query stats
getQueryStats in interface HibernateStatsTabularData of query statsHibernateStats.getQueryStats()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 getCacheRegionStats()
HibernateStatsTabularData of cache region stats
getCacheRegionStats in interface HibernateStatsTabularData of cache region statsHibernateStats.getCacheRegionStats()
public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundExceptionNotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterIllegalArgumentExceptionNotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterNotificationBroadcaster.getNotificationInfo()
public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionNotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||