public class ConcurrentStatisticsImpl
extends java.lang.Object
implements org.hibernate.stat.Statistics, org.hibernate.stat.StatisticsImplementor
Statistics
, as well as StatisticsImplementor
, based on the
java.util.concurrent
package introduced in Java 5.Constructor and Description |
---|
ConcurrentStatisticsImpl() |
ConcurrentStatisticsImpl(org.hibernate.engine.SessionFactoryImplementor sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
reset all statistics
|
void |
closeSession() |
void |
closeStatement() |
void |
connect() |
void |
deleteEntity(java.lang.String entityName) |
void |
endTransaction(boolean success) |
void |
fetchCollection(java.lang.String role) |
void |
fetchEntity(java.lang.String entityName) |
void |
flush() |
long |
getCloseStatementCount() |
long |
getCollectionFetchCount() |
long |
getCollectionLoadCount() |
long |
getCollectionRecreateCount() |
long |
getCollectionRemoveCount() |
java.lang.String[] |
getCollectionRoleNames()
Get the names of all collection roles
|
org.hibernate.stat.CollectionStatistics |
getCollectionStatistics(java.lang.String role)
Get collection statistics per role
|
long |
getCollectionUpdateCount() |
long |
getConnectCount() |
long |
getEntityDeleteCount() |
long |
getEntityFetchCount() |
long |
getEntityInsertCount() |
long |
getEntityLoadCount() |
java.lang.String[] |
getEntityNames()
Get the names of all entities
|
org.hibernate.stat.EntityStatistics |
getEntityStatistics(java.lang.String entityName)
find entity statistics per name
|
long |
getEntityUpdateCount() |
long |
getFlushCount() |
long |
getOptimisticFailureCount() |
long |
getPrepareStatementCount() |
java.lang.String[] |
getQueries()
Get all executed query strings
|
long |
getQueryCacheHitCount() |
long |
getQueryCacheMissCount() |
long |
getQueryCachePutCount() |
long |
getQueryExecutionCount() |
long |
getQueryExecutionMaxTime() |
java.lang.String |
getQueryExecutionMaxTimeQueryString() |
org.hibernate.stat.QueryStatistics |
getQueryStatistics(java.lang.String queryString)
Query statistics from query string (HQL or SQL)
|
long |
getSecondLevelCacheHitCount() |
long |
getSecondLevelCacheMissCount() |
long |
getSecondLevelCachePutCount() |
java.lang.String[] |
getSecondLevelCacheRegionNames()
Get all second-level cache region names
|
org.hibernate.stat.SecondLevelCacheStatistics |
getSecondLevelCacheStatistics(java.lang.String regionName)
Second level cache statistics per region
|
long |
getSessionCloseCount() |
long |
getSessionOpenCount() |
long |
getStartTime() |
long |
getSuccessfulTransactionCount() |
long |
getTransactionCount() |
void |
insertEntity(java.lang.String entityName) |
boolean |
isStatisticsEnabled()
Are statistics logged
|
void |
loadCollection(java.lang.String role) |
void |
loadEntity(java.lang.String entityName) |
void |
logSummary()
log in info level the main statistics
|
void |
openSession() |
void |
optimisticFailure(java.lang.String entityName) |
void |
prepareStatement() |
void |
queryCacheHit(java.lang.String hql,
java.lang.String regionName) |
void |
queryCacheMiss(java.lang.String hql,
java.lang.String regionName) |
void |
queryCachePut(java.lang.String hql,
java.lang.String regionName) |
void |
queryExecuted(java.lang.String hql,
int rows,
long time) |
void |
recreateCollection(java.lang.String role) |
void |
removeCollection(java.lang.String role) |
void |
secondLevelCacheHit(java.lang.String regionName) |
void |
secondLevelCacheMiss(java.lang.String regionName) |
void |
secondLevelCachePut(java.lang.String regionName) |
void |
setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)
|
java.lang.String |
toString() |
void |
updateCollection(java.lang.String role) |
void |
updateEntity(java.lang.String entityName) |
public ConcurrentStatisticsImpl()
public ConcurrentStatisticsImpl(org.hibernate.engine.SessionFactoryImplementor sessionFactory)
public void clear()
clear
in interface org.hibernate.stat.Statistics
public void openSession()
openSession
in interface org.hibernate.stat.StatisticsImplementor
public void closeSession()
closeSession
in interface org.hibernate.stat.StatisticsImplementor
public void flush()
flush
in interface org.hibernate.stat.StatisticsImplementor
public void connect()
connect
in interface org.hibernate.stat.StatisticsImplementor
public void loadEntity(java.lang.String entityName)
loadEntity
in interface org.hibernate.stat.StatisticsImplementor
public void fetchEntity(java.lang.String entityName)
fetchEntity
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.EntityStatistics getEntityStatistics(java.lang.String entityName)
getEntityStatistics
in interface org.hibernate.stat.Statistics
entityName
- entity namepublic void updateEntity(java.lang.String entityName)
updateEntity
in interface org.hibernate.stat.StatisticsImplementor
public void insertEntity(java.lang.String entityName)
insertEntity
in interface org.hibernate.stat.StatisticsImplementor
public void deleteEntity(java.lang.String entityName)
deleteEntity
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.CollectionStatistics getCollectionStatistics(java.lang.String role)
getCollectionStatistics
in interface org.hibernate.stat.Statistics
role
- collection rolepublic void loadCollection(java.lang.String role)
loadCollection
in interface org.hibernate.stat.StatisticsImplementor
public void fetchCollection(java.lang.String role)
fetchCollection
in interface org.hibernate.stat.StatisticsImplementor
public void updateCollection(java.lang.String role)
updateCollection
in interface org.hibernate.stat.StatisticsImplementor
public void recreateCollection(java.lang.String role)
recreateCollection
in interface org.hibernate.stat.StatisticsImplementor
public void removeCollection(java.lang.String role)
removeCollection
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.SecondLevelCacheStatistics getSecondLevelCacheStatistics(java.lang.String regionName)
getSecondLevelCacheStatistics
in interface org.hibernate.stat.Statistics
regionName
- region namepublic void secondLevelCachePut(java.lang.String regionName)
secondLevelCachePut
in interface org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheHit(java.lang.String regionName)
secondLevelCacheHit
in interface org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheMiss(java.lang.String regionName)
secondLevelCacheMiss
in interface org.hibernate.stat.StatisticsImplementor
public void queryExecuted(java.lang.String hql, int rows, long time)
queryExecuted
in interface org.hibernate.stat.StatisticsImplementor
public void queryCacheHit(java.lang.String hql, java.lang.String regionName)
queryCacheHit
in interface org.hibernate.stat.StatisticsImplementor
public void queryCacheMiss(java.lang.String hql, java.lang.String regionName)
queryCacheMiss
in interface org.hibernate.stat.StatisticsImplementor
public void queryCachePut(java.lang.String hql, java.lang.String regionName)
queryCachePut
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.QueryStatistics getQueryStatistics(java.lang.String queryString)
getQueryStatistics
in interface org.hibernate.stat.Statistics
queryString
- query stringpublic long getEntityDeleteCount()
getEntityDeleteCount
in interface org.hibernate.stat.Statistics
public long getEntityInsertCount()
getEntityInsertCount
in interface org.hibernate.stat.Statistics
public long getEntityLoadCount()
getEntityLoadCount
in interface org.hibernate.stat.Statistics
public long getEntityFetchCount()
getEntityFetchCount
in interface org.hibernate.stat.Statistics
public long getEntityUpdateCount()
getEntityUpdateCount
in interface org.hibernate.stat.Statistics
public long getQueryExecutionCount()
getQueryExecutionCount
in interface org.hibernate.stat.Statistics
public long getQueryCacheHitCount()
getQueryCacheHitCount
in interface org.hibernate.stat.Statistics
public long getQueryCacheMissCount()
getQueryCacheMissCount
in interface org.hibernate.stat.Statistics
public long getQueryCachePutCount()
getQueryCachePutCount
in interface org.hibernate.stat.Statistics
public long getFlushCount()
getFlushCount
in interface org.hibernate.stat.Statistics
public long getConnectCount()
getConnectCount
in interface org.hibernate.stat.Statistics
public long getSecondLevelCacheHitCount()
getSecondLevelCacheHitCount
in interface org.hibernate.stat.Statistics
public long getSecondLevelCacheMissCount()
getSecondLevelCacheMissCount
in interface org.hibernate.stat.Statistics
public long getSecondLevelCachePutCount()
getSecondLevelCachePutCount
in interface org.hibernate.stat.Statistics
public long getSessionCloseCount()
getSessionCloseCount
in interface org.hibernate.stat.Statistics
public long getSessionOpenCount()
getSessionOpenCount
in interface org.hibernate.stat.Statistics
public long getCollectionLoadCount()
getCollectionLoadCount
in interface org.hibernate.stat.Statistics
public long getCollectionFetchCount()
getCollectionFetchCount
in interface org.hibernate.stat.Statistics
public long getCollectionUpdateCount()
getCollectionUpdateCount
in interface org.hibernate.stat.Statistics
public long getCollectionRemoveCount()
getCollectionRemoveCount
in interface org.hibernate.stat.Statistics
public long getCollectionRecreateCount()
getCollectionRecreateCount
in interface org.hibernate.stat.Statistics
public long getStartTime()
getStartTime
in interface org.hibernate.stat.Statistics
System.currentTimeMillis()
)public void logSummary()
logSummary
in interface org.hibernate.stat.Statistics
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface org.hibernate.stat.Statistics
public void setStatisticsEnabled(boolean b)
setStatisticsEnabled
in interface org.hibernate.stat.Statistics
public long getQueryExecutionMaxTime()
getQueryExecutionMaxTime
in interface org.hibernate.stat.Statistics
public java.lang.String[] getQueries()
getQueries
in interface org.hibernate.stat.Statistics
public java.lang.String[] getEntityNames()
getEntityNames
in interface org.hibernate.stat.Statistics
public java.lang.String[] getCollectionRoleNames()
getCollectionRoleNames
in interface org.hibernate.stat.Statistics
public java.lang.String[] getSecondLevelCacheRegionNames()
getSecondLevelCacheRegionNames
in interface org.hibernate.stat.Statistics
public void endTransaction(boolean success)
endTransaction
in interface org.hibernate.stat.StatisticsImplementor
public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount
in interface org.hibernate.stat.Statistics
public long getTransactionCount()
getTransactionCount
in interface org.hibernate.stat.Statistics
public void closeStatement()
closeStatement
in interface org.hibernate.stat.StatisticsImplementor
public void prepareStatement()
prepareStatement
in interface org.hibernate.stat.StatisticsImplementor
public long getCloseStatementCount()
getCloseStatementCount
in interface org.hibernate.stat.Statistics
public long getPrepareStatementCount()
getPrepareStatementCount
in interface org.hibernate.stat.Statistics
public void optimisticFailure(java.lang.String entityName)
optimisticFailure
in interface org.hibernate.stat.StatisticsImplementor
public long getOptimisticFailureCount()
getOptimisticFailureCount
in interface org.hibernate.stat.Statistics
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getQueryExecutionMaxTimeQueryString()
getQueryExecutionMaxTimeQueryString
in interface org.hibernate.stat.Statistics
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.