public interface HibernateStats extends NotificationEmitter
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_ENABLED
CACHE_ENABLED
|
static String |
CACHE_FLUSHED
CACHE_FLUSHED
|
static String |
CACHE_REGION_CHANGED
CACHE_REGION_CHANGED
|
static String |
CACHE_REGION_FLUSHED
CACHE_REGION_FLUSHED
|
static String |
CACHE_STATISTICS_ENABLED
CACHE_STATISTICS_ENABLED
|
static String |
CACHE_STATISTICS_RESET
CACHE_STATISTICS_RESET
|
| Modifier and Type | Method and Description |
|---|---|
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
|
TabularData |
getEntityStats()
Returns
TabularData of entity stats |
long |
getFlushCount()
Returns flush count
|
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
|
removeNotificationListeneraddNotificationListener, getNotificationInfo, removeNotificationListenerstatic final String CACHE_ENABLED
static final String CACHE_REGION_CHANGED
static final String CACHE_FLUSHED
static final String CACHE_REGION_FLUSHED
static final String CACHE_STATISTICS_ENABLED
static final String CACHE_STATISTICS_RESET
boolean isStatisticsEnabled()
void setStatisticsEnabled(boolean flag)
flag - void enableStats()
void disableStats()
void clearStats()
long getQueryExecutionCount()
long getQueryExecutionSample()
double getQueryExecutionRate()
long getCloseStatementCount()
long getConnectCount()
long getFlushCount()
long getOptimisticFailureCount()
long getPrepareStatementCount()
long getSessionCloseCount()
long getSessionOpenCount()
long getSuccessfulTransactionCount()
long getTransactionCount()
TabularData getEntityStats()
TabularData of entity statsTabularData of entity statsTabularData getCollectionStats()
TabularData of collection statsTabularData of collection statsTabularData getQueryStats()
TabularData of query statsTabularData of query statsTabularData getCacheRegionStats()
TabularData of cache region statsTabularData of cache region statsCopyright 2001-2021, Terracotta, Inc.