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