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.コンストラクタと説明 |
---|
ConcurrentStatisticsImpl() |
ConcurrentStatisticsImpl(org.hibernate.engine.SessionFactoryImplementor sessionFactory) |
修飾子とタイプ | メソッドと説明 |
---|---|
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
インタフェース内 org.hibernate.stat.Statistics
public void openSession()
openSession
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void closeSession()
closeSession
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void flush()
flush
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void connect()
connect
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void loadEntity(java.lang.String entityName)
loadEntity
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void fetchEntity(java.lang.String entityName)
fetchEntity
インタフェース内 org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.EntityStatistics getEntityStatistics(java.lang.String entityName)
getEntityStatistics
インタフェース内 org.hibernate.stat.Statistics
entityName
- entity namepublic void updateEntity(java.lang.String entityName)
updateEntity
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void insertEntity(java.lang.String entityName)
insertEntity
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void deleteEntity(java.lang.String entityName)
deleteEntity
インタフェース内 org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.CollectionStatistics getCollectionStatistics(java.lang.String role)
getCollectionStatistics
インタフェース内 org.hibernate.stat.Statistics
role
- collection rolepublic void loadCollection(java.lang.String role)
loadCollection
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void fetchCollection(java.lang.String role)
fetchCollection
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void updateCollection(java.lang.String role)
updateCollection
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void recreateCollection(java.lang.String role)
recreateCollection
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void removeCollection(java.lang.String role)
removeCollection
インタフェース内 org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.SecondLevelCacheStatistics getSecondLevelCacheStatistics(java.lang.String regionName)
getSecondLevelCacheStatistics
インタフェース内 org.hibernate.stat.Statistics
regionName
- region namepublic void secondLevelCachePut(java.lang.String regionName)
secondLevelCachePut
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheHit(java.lang.String regionName)
secondLevelCacheHit
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void secondLevelCacheMiss(java.lang.String regionName)
secondLevelCacheMiss
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void queryExecuted(java.lang.String hql, int rows, long time)
queryExecuted
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void queryCacheHit(java.lang.String hql, java.lang.String regionName)
queryCacheHit
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void queryCacheMiss(java.lang.String hql, java.lang.String regionName)
queryCacheMiss
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void queryCachePut(java.lang.String hql, java.lang.String regionName)
queryCachePut
インタフェース内 org.hibernate.stat.StatisticsImplementor
public org.hibernate.stat.QueryStatistics getQueryStatistics(java.lang.String queryString)
getQueryStatistics
インタフェース内 org.hibernate.stat.Statistics
queryString
- query stringpublic long getEntityDeleteCount()
getEntityDeleteCount
インタフェース内 org.hibernate.stat.Statistics
public long getEntityInsertCount()
getEntityInsertCount
インタフェース内 org.hibernate.stat.Statistics
public long getEntityLoadCount()
getEntityLoadCount
インタフェース内 org.hibernate.stat.Statistics
public long getEntityFetchCount()
getEntityFetchCount
インタフェース内 org.hibernate.stat.Statistics
public long getEntityUpdateCount()
getEntityUpdateCount
インタフェース内 org.hibernate.stat.Statistics
public long getQueryExecutionCount()
getQueryExecutionCount
インタフェース内 org.hibernate.stat.Statistics
public long getQueryCacheHitCount()
getQueryCacheHitCount
インタフェース内 org.hibernate.stat.Statistics
public long getQueryCacheMissCount()
getQueryCacheMissCount
インタフェース内 org.hibernate.stat.Statistics
public long getQueryCachePutCount()
getQueryCachePutCount
インタフェース内 org.hibernate.stat.Statistics
public long getFlushCount()
getFlushCount
インタフェース内 org.hibernate.stat.Statistics
public long getConnectCount()
getConnectCount
インタフェース内 org.hibernate.stat.Statistics
public long getSecondLevelCacheHitCount()
getSecondLevelCacheHitCount
インタフェース内 org.hibernate.stat.Statistics
public long getSecondLevelCacheMissCount()
getSecondLevelCacheMissCount
インタフェース内 org.hibernate.stat.Statistics
public long getSecondLevelCachePutCount()
getSecondLevelCachePutCount
インタフェース内 org.hibernate.stat.Statistics
public long getSessionCloseCount()
getSessionCloseCount
インタフェース内 org.hibernate.stat.Statistics
public long getSessionOpenCount()
getSessionOpenCount
インタフェース内 org.hibernate.stat.Statistics
public long getCollectionLoadCount()
getCollectionLoadCount
インタフェース内 org.hibernate.stat.Statistics
public long getCollectionFetchCount()
getCollectionFetchCount
インタフェース内 org.hibernate.stat.Statistics
public long getCollectionUpdateCount()
getCollectionUpdateCount
インタフェース内 org.hibernate.stat.Statistics
public long getCollectionRemoveCount()
getCollectionRemoveCount
インタフェース内 org.hibernate.stat.Statistics
public long getCollectionRecreateCount()
getCollectionRecreateCount
インタフェース内 org.hibernate.stat.Statistics
public long getStartTime()
getStartTime
インタフェース内 org.hibernate.stat.Statistics
System.currentTimeMillis()
)public void logSummary()
logSummary
インタフェース内 org.hibernate.stat.Statistics
public boolean isStatisticsEnabled()
isStatisticsEnabled
インタフェース内 org.hibernate.stat.Statistics
public void setStatisticsEnabled(boolean b)
setStatisticsEnabled
インタフェース内 org.hibernate.stat.Statistics
public long getQueryExecutionMaxTime()
getQueryExecutionMaxTime
インタフェース内 org.hibernate.stat.Statistics
public java.lang.String[] getQueries()
getQueries
インタフェース内 org.hibernate.stat.Statistics
public java.lang.String[] getEntityNames()
getEntityNames
インタフェース内 org.hibernate.stat.Statistics
public java.lang.String[] getCollectionRoleNames()
getCollectionRoleNames
インタフェース内 org.hibernate.stat.Statistics
public java.lang.String[] getSecondLevelCacheRegionNames()
getSecondLevelCacheRegionNames
インタフェース内 org.hibernate.stat.Statistics
public void endTransaction(boolean success)
endTransaction
インタフェース内 org.hibernate.stat.StatisticsImplementor
public long getSuccessfulTransactionCount()
getSuccessfulTransactionCount
インタフェース内 org.hibernate.stat.Statistics
public long getTransactionCount()
getTransactionCount
インタフェース内 org.hibernate.stat.Statistics
public void closeStatement()
closeStatement
インタフェース内 org.hibernate.stat.StatisticsImplementor
public void prepareStatement()
prepareStatement
インタフェース内 org.hibernate.stat.StatisticsImplementor
public long getCloseStatementCount()
getCloseStatementCount
インタフェース内 org.hibernate.stat.Statistics
public long getPrepareStatementCount()
getPrepareStatementCount
インタフェース内 org.hibernate.stat.Statistics
public void optimisticFailure(java.lang.String entityName)
optimisticFailure
インタフェース内 org.hibernate.stat.StatisticsImplementor
public long getOptimisticFailureCount()
getOptimisticFailureCount
インタフェース内 org.hibernate.stat.Statistics
public java.lang.String toString()
toString
クラス内 java.lang.Object
public java.lang.String getQueryExecutionMaxTimeQueryString()
getQueryExecutionMaxTimeQueryString
インタフェース内 org.hibernate.stat.Statistics