clear
public void clear()
reset all statistics
getCloseStatementCount
public long getCloseStatementCount()
The number of prepared statements that were released
getCollectionFetchCount
public long getCollectionFetchCount()
Global number of collections fetched
getCollectionLoadCount
public long getCollectionLoadCount()
Global number of collections loaded
getCollectionRecreateCount
public long getCollectionRecreateCount()
Global number of collections recreated
getCollectionRemoveCount
public long getCollectionRemoveCount()
Global number of collections removed
getCollectionRoleNames
public String[] getCollectionRoleNames()
Get the names of all collection roles
getCollectionStatistics
public CollectionStatistics getCollectionStatistics(String role)
Get collection statistics per role
getCollectionUpdateCount
public long getCollectionUpdateCount()
Global number of collections updated
getConnectCount
public long getConnectCount()
Get the global number of connections asked by the sessions
(the actual number of connections used may be much smaller depending
whether you use a connection pool or not)
getEntityDeleteCount
public long getEntityDeleteCount()
Get global number of entity deletes
getEntityFetchCount
public long getEntityFetchCount()
Get global number of entity fetchs
getEntityInsertCount
public long getEntityInsertCount()
Get global number of entity inserts
getEntityLoadCount
public long getEntityLoadCount()
Get global number of entity loads
getEntityNames
public String[] getEntityNames()
Get the names of all entities
getEntityStatistics
public EntityStatistics getEntityStatistics(String entityName)
find entity statistics per name
getEntityUpdateCount
public long getEntityUpdateCount()
Get global number of entity updates
getFlushCount
public long getFlushCount()
Get the global number of flush executed by sessions (either implicit or explicit)
getOptimisticFailureCount
public long getOptimisticFailureCount()
The number of StaleObjectStateExceptions
that occurred
getPrepareStatementCount
public long getPrepareStatementCount()
The number of prepared statements that were acquired
getQueries
public String[] getQueries()
Get all executed query strings
getQueryCacheHitCount
public long getQueryCacheHitCount()
Get the global number of cached queries successfully retrieved from cache
getQueryCacheMissCount
public long getQueryCacheMissCount()
Get the global number of cached queries *not* found in cache
getQueryCachePutCount
public long getQueryCachePutCount()
Get the global number of cacheable queries put in cache
getQueryExecutionCount
public long getQueryExecutionCount()
Get global number of executed queries
getQueryExecutionMaxTime
public long getQueryExecutionMaxTime()
Get the time in milliseconds of the slowest query.
getQueryExecutionMaxTimeQueryString
public String getQueryExecutionMaxTimeQueryString()
Get the query string for the slowest query.
getQueryStatistics
public QueryStatistics getQueryStatistics(String queryString)
Query statistics from query string (HQL or SQL)
queryString
- query string
getSecondLevelCacheHitCount
public long getSecondLevelCacheHitCount()
Global number of cacheable entities/collections successfully retrieved from the cache
getSecondLevelCacheMissCount
public long getSecondLevelCacheMissCount()
Global number of cacheable entities/collections not found in the cache and loaded from the database.
getSecondLevelCachePutCount
public long getSecondLevelCachePutCount()
Global number of cacheable entities/collections put in the cache
getSecondLevelCacheRegionNames
public String[] getSecondLevelCacheRegionNames()
Get all second-level cache region names
getSecondLevelCacheStatistics
public SecondLevelCacheStatistics getSecondLevelCacheStatistics(String regionName)
Second level cache statistics per region
- SecondLevelCacheStatistics
getSessionCloseCount
public long getSessionCloseCount()
Global number of sessions closed
getSessionOpenCount
public long getSessionOpenCount()
Global number of sessions opened
getStartTime
public long getStartTime()
- start time in ms (JVM standards
System.currentTimeMillis()
)
getSuccessfulTransactionCount
public long getSuccessfulTransactionCount()
The number of transactions we know to have been successful
getTransactionCount
public long getTransactionCount()
The number of transactions we know to have completed
isStatisticsEnabled
public boolean isStatisticsEnabled()
Are statistics logged
logSummary
public void logSummary()
log in info level the main statistics
setStatisticsEnabled
public void setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)