public class ConcurrentStatisticsImpl extends 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) |
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(String entityName)
loadEntity
in interface org.hibernate.stat.StatisticsImplementor
public void fetchEntity(String entityName)
fetchEntity
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.EntityStatistics getEntityStatistics(String entityName)
getEntityStatistics
in interface org.hibernate.stat.Statistics
entityName
- entity namepublic void updateEntity(String entityName)
updateEntity
in interface org.hibernate.stat.StatisticsImplementor
public void insertEntity(String entityName)
insertEntity
in interface org.hibernate.stat.StatisticsImplementor
public void deleteEntity(String entityName)
deleteEntity
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.CollectionStatistics getCollectionStatistics(String role)
getCollectionStatistics
in interface org.hibernate.stat.Statistics
role
- collection rolepublic void loadCollection(String role)
loadCollection
in interface org.hibernate.stat.StatisticsImplementor
public void fetchCollection(String role)
fetchCollection
in interface org.hibernate.stat.StatisticsImplementor
public void updateCollection(String role)
updateCollection
in interface org.hibernate.stat.StatisticsImplementor
public void recreateCollection(String role)
recreateCollection
in interface org.hibernate.stat.StatisticsImplementor
public void removeCollection(String role)
removeCollection
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.SecondLevelCacheStatistics getSecondLevelCacheStatistics(String regionName)
getSecondLevelCacheStatistics
in interface org.hibernate.stat.Statistics
regionName
- region namepublic void secondLevelCachePut(String regionName)
secondLevelCachePut
in interface org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheHit(String regionName)
secondLevelCacheHit
in interface org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheMiss(String regionName)
secondLevelCacheMiss
in interface org.hibernate.stat.StatisticsImplementor
public void queryExecuted(String hql, int rows, long time)
queryExecuted
in interface org.hibernate.stat.StatisticsImplementor
public void queryCacheHit(String hql, String regionName)
queryCacheHit
in interface org.hibernate.stat.StatisticsImplementor
public void queryCacheMiss(String hql, String regionName)
queryCacheMiss
in interface org.hibernate.stat.StatisticsImplementor
public void queryCachePut(String hql, String regionName)
queryCachePut
in interface org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.QueryStatistics getQueryStatistics(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 String[] getQueries()
getQueries
in interface org.hibernate.stat.Statistics
public String[] getEntityNames()
getEntityNames
in interface org.hibernate.stat.Statistics
public String[] getCollectionRoleNames()
getCollectionRoleNames
in interface org.hibernate.stat.Statistics
public 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(String entityName)
optimisticFailure
in interface org.hibernate.stat.StatisticsImplementor
public long getOptimisticFailureCount()
getOptimisticFailureCount
in interface org.hibernate.stat.Statistics
public String getQueryExecutionMaxTimeQueryString()
getQueryExecutionMaxTimeQueryString
in interface org.hibernate.stat.Statistics
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.