HibernateStats
| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final MBeanNotificationInfo | |
| private final SessionFactory |
| Access | Constructor and Description |
|---|---|
| public |
| MILLIS_PER_SECOND | back to summary |
|---|---|
| private static final double MILLIS_PER_SECOND | |
| NOTIFICATION_INFO | back to summary |
|---|---|
| private static final MBeanNotificationInfo NOTIFICATION_INFO | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactory sessionFactory | |
| HibernateStatsImpl | back to summary |
|---|---|
| public HibernateStatsImpl(SessionFactory sessionFactory) throws NotCompliantMBeanException Constructor accepting the backing | |
| clearStats | back to summary |
|---|---|
| public void clearStats() Implements net. Doc from net. Clears statistics, resets all counters to zero | |
| disableStats | back to summary |
|---|---|
| public void disableStats() Implements net. Doc from net. Disables statistics collection | |
| doDispose | back to summary |
|---|---|
| protected void doDispose() Implements abstract net. Doc from net. Dispose callback of subclasses
| |
| enableStats | back to summary |
|---|---|
| public void enableStats() Implements net. Doc from net. Enables statistics collection | |
| getCacheRegionStats | back to summary |
|---|---|
| public TabularData getCacheRegionStats() Implements net. Doc from net. Returns
| |
| getCloseStatementCount | back to summary |
|---|---|
| public long getCloseStatementCount() Implements net. Doc from net. Returns the count of close statements
| |
| getCollectionStats | back to summary |
|---|---|
| public TabularData getCollectionStats() Implements net. Doc from net. Returns
| |
| getConnectCount | back to summary |
|---|---|
| public long getConnectCount() Implements net. Doc from net. Return connect counts
| |
| getDBSQLExecutionSample | back to summary |
|---|---|
| public long getDBSQLExecutionSample() Not supported right now | |
| getEntityStats | back to summary |
|---|---|
| public TabularData getEntityStats() Implements net. Doc from net. Returns
| |
| getFlushCount | back to summary |
|---|---|
| public long getFlushCount() Implements net. Doc from net. Returns flush count
| |
| getNotificationInfo | back to summary |
|---|---|
| public MBeanNotificationInfo[] getNotificationInfo() Implements abstract net. Implements javax. Doc from javax. Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.
| |
| getOptimisticFailureCount | back to summary |
|---|---|
| public long getOptimisticFailureCount() Implements net. Doc from net. Returns Optimistic failure count
| |
| getPrepareStatementCount | back to summary |
|---|---|
| public long getPrepareStatementCount() Implements net. Doc from net. Returns prepare statement count
| |
| getQueryExecutionCount | back to summary |
|---|---|
| public long getQueryExecutionCount() Implements net. Doc from net. Returns the query execution count. This includes only HQL's
| |
| getQueryExecutionRate | back to summary |
|---|---|
| public double getQueryExecutionRate() Implements net. Doc from net. Returns rate of HQL query executed in the DB
| |
| getQueryExecutionSample | back to summary |
|---|---|
| public long getQueryExecutionSample() Implements net. Doc from net. Returns last count sample of HQL's getting executed in the DB.
| |
| getQueryStats | back to summary |
|---|---|
| public TabularData getQueryStats() Implements net. Doc from net. Returns
| |
| getSessionCloseCount | back to summary |
|---|---|
| public long getSessionCloseCount() Implements net. Doc from net. Returns session close count
| |
| getSessionOpenCount | back to summary |
|---|---|
| public long getSessionOpenCount() Implements net. Doc from net. Returns session open count
| |
| getStatistics | back to summary |
|---|---|
private Statistics getStatistics()
| |
| getSuccessfulTransactionCount | back to summary |
|---|---|
| public long getSuccessfulTransactionCount() Implements net. Doc from net. Returns successful transaction count
| |
| getTransactionCount | back to summary |
|---|---|
| public long getTransactionCount() Implements net. Doc from net. Returns transaction count
| |
| isStatisticsEnabled | back to summary |
|---|---|
| public boolean isStatisticsEnabled() Implements net. Doc from net. Returns true if statistics collection is enabled otherwise false
| |
| setStatisticsEnabled | back to summary |
|---|---|
| public void setStatisticsEnabled(boolean flag) Implements net. Doc from net. Enable/Disable statistics collection | |