类 StatisticsImpl
- java.lang.Object
-
- org.hibernate.stat.internal.StatisticsImpl
-
- 所有已实现的接口:
Serializable,Service,Manageable,StatisticsImplementor,Statistics
public class StatisticsImpl extends Object implements StatisticsImplementor, Service, Manageable
Implementation ofStatisticsbased on thejava.util.concurrentpackage.- 作者:
- Alex Snaps, Sanne Grinovero
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 org.hibernate.stat.Statistics
DEFAULT_QUERY_STATISTICS_MAX_SIZE
-
-
构造器概要
构造器 构造器 说明 StatisticsImpl(SessionFactoryImplementor sessionFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclear()reset all statisticsvoidcloseSession()Callback about a session being closed.voidcloseStatement()Callback about a statement being closed.voidcollectionCacheHit(NavigableRole collectionRole, String regionName)Callback indicating a get from second level cache resulted in a hit.voidcollectionCacheMiss(NavigableRole collectionRole, String regionName)Callback indicating a get from second level cache resulted in a miss.voidcollectionCachePut(NavigableRole collectionRole, String regionName)Callback indicating a put into second level cache.voidconnect()Callback about a connection being obtained fromConnectionProvidervoiddeleteEntity(String entityName)Callback about an entity being deleted.voidendTransaction(boolean success)Callback about a transaction completing.voidentityCacheHit(NavigableRole entityName, String regionName)Callback indicating a get from second level cache resulted in a hit.voidentityCacheMiss(NavigableRole entityName, String regionName)Callback indicating a get from second level cache resulted in a miss.voidentityCachePut(NavigableRole entityName, String regionName)Callback indicating a put into second level cache.voidfetchCollection(String role)Callback to indicate a collection being fetched.voidfetchEntity(String entityName)Callback about an entity being fetched.voidflush()Callback about a flush occurringCacheRegionStatisticsImplgetCacheRegionStatistics(String regionName)Get statistics for either a domain-data or query-result region - this method checks both, preferring domain data region if one.longgetCloseStatementCount()The number of prepared statements that were releasedlonggetCollectionFetchCount()Global number of collections fetchedlonggetCollectionLoadCount()Global number of collections loadedlonggetCollectionRecreateCount()Global number of collections recreatedlonggetCollectionRemoveCount()Global number of collections removedString[]getCollectionRoleNames()Get the names of all collection rolesCollectionStatisticsImplgetCollectionStatistics(String role)Get collection statistics per rolelonggetCollectionUpdateCount()Global number of collections updatedlonggetConnectCount()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)CacheRegionStatisticsImplgetDomainDataRegionStatistics(String regionName)Second-level cache statistics per domain data (entity, collection, natural-id) regionlonggetEntityDeleteCount()Get global number of entity deleteslonggetEntityFetchCount()Get global number of entity fetcheslonggetEntityInsertCount()Get global number of entity insertslonggetEntityLoadCount()Get global number of entity loadsString[]getEntityNames()Get the names of all entitiesEntityStatisticsImplgetEntityStatistics(String entityName)find entity statistics per namelonggetEntityUpdateCount()Get global number of entity updateslonggetFlushCount()Get the global number of flush operations executed (either manual or automatic).longgetNaturalIdCacheHitCount()Get the global number of cached natural id lookups successfully retrieved from cachelonggetNaturalIdCacheMissCount()Get the global number of cached natural id lookups *not* found in cachelonggetNaturalIdCachePutCount()Get the global number of cacheable natural id lookups put in cacheDeprecatedNaturalIdCacheStatisticsImplgetNaturalIdCacheStatistics(String regionName)Natural id cache statistics per regionlonggetNaturalIdQueryExecutionCount()Get the global number of natural id queries executed against the databaselonggetNaturalIdQueryExecutionMaxTime()Get the global maximum query time for natural id queries executed against the databaseStringgetNaturalIdQueryExecutionMaxTimeEntity()Get the entity for the maximum natural id query timeStringgetNaturalIdQueryExecutionMaxTimeRegion()Get the region for the maximum natural id query timeNaturalIdStatisticsImplgetNaturalIdStatistics(String rootEntityName)Natural id resolution query statistics for an entity typelonggetOptimisticFailureCount()The number of Hibernate StaleObjectStateExceptions or JPA OptimisticLockExceptions that occurred.longgetPrepareStatementCount()The number of prepared statements that were acquiredString[]getQueries()Get all executed query strings.longgetQueryCacheHitCount()Get the global number of cached queries successfully retrieved from cachelonggetQueryCacheMissCount()Get the global number of cached queries *not* found in cachelonggetQueryCachePutCount()Get the global number of cacheable queries put in cachelonggetQueryExecutionCount()Get global number of executed querieslonggetQueryExecutionMaxTime()Get the time in milliseconds of the slowest query.StringgetQueryExecutionMaxTimeQueryString()Get the query string for the slowest query.longgetQueryPlanCacheHitCount()Get the global number of query plans successfully retrieved from cachelonggetQueryPlanCacheMissCount()Get the global number of query plans lookups *not* found in cacheCacheRegionStatisticsImplgetQueryRegionStatistics(String regionName)Second-level cache statistics per query regionQueryStatisticsImplgetQueryStatistics(String queryString)Query statistics from query string (HQL or SQL)longgetSecondLevelCacheHitCount()Global number of cacheable entities/collections successfully retrieved from the cachelonggetSecondLevelCacheMissCount()Global number of cacheable entities/collections not found in the cache and loaded from the database.longgetSecondLevelCachePutCount()Global number of cacheable entities/collections put in the cacheString[]getSecondLevelCacheRegionNames()Get all second-level cache region names.CacheRegionStatisticsImplgetSecondLevelCacheStatistics(String regionName)Second-level cache statistics per regionlonggetSessionCloseCount()Global number of sessions closedlonggetSessionOpenCount()Global number of sessions openedlonggetStartTime()The milliseconds (JVM standardSystem.currentTimeMillis()) since the initial creation of this Statistics instance or the last timeStatistics.clear()was called.longgetSuccessfulTransactionCount()The number of transactions we know to have been successfullonggetTransactionCount()The number of transactions we know to have completedlonggetUpdateTimestampsCacheHitCount()Get the global number of timestamps successfully retrieved from cachelonggetUpdateTimestampsCacheMissCount()Get the global number of timestamp requests that were not found in the cachelonggetUpdateTimestampsCachePutCount()Get the global number of timestamps put in cachevoidinsertEntity(String entityName)Callback about an entity being insertedbooleanisStatisticsEnabled()Are statistics enabledvoidloadCollection(String role)Callback about a collection loading.voidloadEntity(String entityName)Callback about an entity being loaded.voidlogSummary()log in info level the main statisticsvoidnaturalIdCacheHit(NavigableRole rootEntityName, String regionName)Callback indicating a get from natural id cache resulted in a hit.voidnaturalIdCacheMiss(NavigableRole rootEntityName, String regionName)Callback indicating a get from natural id cache resulted in a miss.voidnaturalIdCachePut(NavigableRole rootEntityName, String regionName)Callback indicating a put into natural id cache.voidnaturalIdQueryExecuted(String rootEntityName, long time)Callback indicating execution of a natural id queryvoidopenSession()Callback about a session being opened.voidoptimisticFailure(String entityName)Callback about an optimistic lock failure on an entityvoidprepareStatement()Callback about a statement being prepared.voidqueryCacheHit(String hql, String regionName)Callback indicating a get from the query cache resulted in a hit.voidqueryCacheMiss(String hql, String regionName)Callback indicating a get from the query cache resulted in a miss.voidqueryCachePut(String hql, String regionName)Callback indicating a put into the query cache.voidqueryCompiled(String hql, long microseconds)Callback indicating compilation of a sql/hql queryvoidqueryExecuted(String hql, int rows, long time)Callback indicating execution of a sql/hql queryvoidqueryPlanCacheHit(String hql)Callback indicating a get from the query plan cache resulted in a hit.voidrecreateCollection(String role)Callback indicating a collection recreation (full deletion + full (re-)insertion).voidremoveCollection(String role)Callback indicating a collection removal.voidsetStatisticsEnabled(boolean b)Enable statistics logs (this is a dynamic parameter)StringtoString()voidupdateCollection(String role)Callback indicating a collection was updated.voidupdateEntity(String entityName)Callback about an entity being updated.voidupdateTimestampsCacheHit()Callback indicating a hit to the timestamp cachevoidupdateTimestampsCacheMiss()Callback indicating a miss to the timestamp cachevoidupdateTimestampsCachePut()Callback indicating a put to the timestamp cache-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.service.spi.Manageable
getManagementBean, getManagementDomain, getManagementServiceType
-
-
-
-
构造器详细资料
-
StatisticsImpl
public StatisticsImpl(SessionFactoryImplementor sessionFactory)
-
-
方法详细资料
-
clear
public void clear()
reset all statistics- 指定者:
clear在接口中Statistics
-
getStartTime
public long getStartTime()
从接口复制的说明:StatisticsThe milliseconds (JVM standardSystem.currentTimeMillis()) since the initial creation of this Statistics instance or the last timeStatistics.clear()was called.- 指定者:
getStartTime在接口中Statistics
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
从接口复制的说明:StatisticsAre statistics enabled- 指定者:
isStatisticsEnabled在接口中Statistics
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean b)
从接口复制的说明:StatisticsEnable statistics logs (this is a dynamic parameter)- 指定者:
setStatisticsEnabled在接口中Statistics
-
getEntityNames
public String[] getEntityNames()
从接口复制的说明:StatisticsGet the names of all entities- 指定者:
getEntityNames在接口中Statistics
-
getEntityStatistics
public EntityStatisticsImpl getEntityStatistics(String entityName)
从接口复制的说明:Statisticsfind entity statistics per name- 指定者:
getEntityStatistics在接口中Statistics- 参数:
entityName- entity name- 返回:
- EntityStatistics object
-
getEntityLoadCount
public long getEntityLoadCount()
从接口复制的说明:StatisticsGet global number of entity loads- 指定者:
getEntityLoadCount在接口中Statistics- 返回:
- entity load (from DB)
-
getEntityFetchCount
public long getEntityFetchCount()
从接口复制的说明:StatisticsGet global number of entity fetches- 指定者:
getEntityFetchCount在接口中Statistics- 返回:
- entity fetch (from DB)
-
getEntityDeleteCount
public long getEntityDeleteCount()
从接口复制的说明:StatisticsGet global number of entity deletes- 指定者:
getEntityDeleteCount在接口中Statistics- 返回:
- entity deletion count
-
getEntityInsertCount
public long getEntityInsertCount()
从接口复制的说明:StatisticsGet global number of entity inserts- 指定者:
getEntityInsertCount在接口中Statistics- 返回:
- entity insertion count
-
getEntityUpdateCount
public long getEntityUpdateCount()
从接口复制的说明:StatisticsGet global number of entity updates- 指定者:
getEntityUpdateCount在接口中Statistics- 返回:
- entity update
-
getOptimisticFailureCount
public long getOptimisticFailureCount()
从接口复制的说明:StatisticsThe number of Hibernate StaleObjectStateExceptions or JPA OptimisticLockExceptions that occurred.- 指定者:
getOptimisticFailureCount在接口中Statistics
-
loadEntity
public void loadEntity(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an entity being loaded. This might indicate a proxy or a fully initialized entity, but in either case it means without a separate SQL query being needed.- 指定者:
loadEntity在接口中StatisticsImplementor- 参数:
entityName- The name of the entity loaded.
-
fetchEntity
public void fetchEntity(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an entity being fetched. UnlikeStatisticsImplementor.loadEntity(java.lang.String)this indicates a separate query being performed.- 指定者:
fetchEntity在接口中StatisticsImplementor- 参数:
entityName- The name of the entity fetched.
-
updateEntity
public void updateEntity(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an entity being updated.- 指定者:
updateEntity在接口中StatisticsImplementor- 参数:
entityName- The name of the entity updated.
-
insertEntity
public void insertEntity(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an entity being inserted- 指定者:
insertEntity在接口中StatisticsImplementor- 参数:
entityName- The name of the entity inserted
-
deleteEntity
public void deleteEntity(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an entity being deleted.- 指定者:
deleteEntity在接口中StatisticsImplementor- 参数:
entityName- The name of the entity deleted.
-
optimisticFailure
public void optimisticFailure(String entityName)
从接口复制的说明:StatisticsImplementorCallback about an optimistic lock failure on an entity- 指定者:
optimisticFailure在接口中StatisticsImplementor- 参数:
entityName- The name of the entity.
-
entityCachePut
public void entityCachePut(NavigableRole entityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a put into second level cache.- 指定者:
entityCachePut在接口中StatisticsImplementor
-
entityCacheHit
public void entityCacheHit(NavigableRole entityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from second level cache resulted in a hit.- 指定者:
entityCacheHit在接口中StatisticsImplementor
-
entityCacheMiss
public void entityCacheMiss(NavigableRole entityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from second level cache resulted in a miss.- 指定者:
entityCacheMiss在接口中StatisticsImplementor
-
getCollectionRoleNames
public String[] getCollectionRoleNames()
从接口复制的说明:StatisticsGet the names of all collection roles- 指定者:
getCollectionRoleNames在接口中Statistics
-
getCollectionStatistics
public CollectionStatisticsImpl getCollectionStatistics(String role)
从接口复制的说明:StatisticsGet collection statistics per role- 指定者:
getCollectionStatistics在接口中Statistics- 参数:
role- collection role- 返回:
- CollectionStatistics
-
getCollectionLoadCount
public long getCollectionLoadCount()
从接口复制的说明:StatisticsGlobal number of collections loaded- 指定者:
getCollectionLoadCount在接口中Statistics
-
getCollectionFetchCount
public long getCollectionFetchCount()
从接口复制的说明:StatisticsGlobal number of collections fetched- 指定者:
getCollectionFetchCount在接口中Statistics
-
getCollectionUpdateCount
public long getCollectionUpdateCount()
从接口复制的说明:StatisticsGlobal number of collections updated- 指定者:
getCollectionUpdateCount在接口中Statistics
-
getCollectionRemoveCount
public long getCollectionRemoveCount()
从接口复制的说明:StatisticsGlobal number of collections removed- 指定者:
getCollectionRemoveCount在接口中Statistics
-
getCollectionRecreateCount
public long getCollectionRecreateCount()
从接口复制的说明:StatisticsGlobal number of collections recreated- 指定者:
getCollectionRecreateCount在接口中Statistics
-
loadCollection
public void loadCollection(String role)
从接口复制的说明:StatisticsImplementorCallback about a collection loading. This might indicate a lazy collection or an initialized collection being created, but in either case it means without a separate SQL query being needed.- 指定者:
loadCollection在接口中StatisticsImplementor- 参数:
role- The collection role.
-
fetchCollection
public void fetchCollection(String role)
从接口复制的说明:StatisticsImplementorCallback to indicate a collection being fetched. UnlikeStatisticsImplementor.loadCollection(java.lang.String), this indicates a separate query was needed.- 指定者:
fetchCollection在接口中StatisticsImplementor- 参数:
role- The collection role.
-
updateCollection
public void updateCollection(String role)
从接口复制的说明:StatisticsImplementorCallback indicating a collection was updated.- 指定者:
updateCollection在接口中StatisticsImplementor- 参数:
role- The collection role.
-
recreateCollection
public void recreateCollection(String role)
从接口复制的说明:StatisticsImplementorCallback indicating a collection recreation (full deletion + full (re-)insertion).- 指定者:
recreateCollection在接口中StatisticsImplementor- 参数:
role- The collection role.
-
removeCollection
public void removeCollection(String role)
从接口复制的说明:StatisticsImplementorCallback indicating a collection removal.- 指定者:
removeCollection在接口中StatisticsImplementor- 参数:
role- The collection role.
-
collectionCachePut
public void collectionCachePut(NavigableRole collectionRole, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a put into second level cache.- 指定者:
collectionCachePut在接口中StatisticsImplementor- 参数:
collectionRole- The collection's "path"regionName- The name of the cache region
-
collectionCacheHit
public void collectionCacheHit(NavigableRole collectionRole, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from second level cache resulted in a hit.- 指定者:
collectionCacheHit在接口中StatisticsImplementor- 参数:
collectionRole- The collection's "path"regionName- The name of the cache region
-
collectionCacheMiss
public void collectionCacheMiss(NavigableRole collectionRole, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from second level cache resulted in a miss.- 指定者:
collectionCacheMiss在接口中StatisticsImplementor- 参数:
collectionRole- The collection's "path"regionName- The name of the cache region
-
getNaturalIdStatistics
public NaturalIdStatisticsImpl getNaturalIdStatistics(String rootEntityName)
从接口复制的说明:StatisticsNatural id resolution query statistics for an entity type- 指定者:
getNaturalIdStatistics在接口中Statistics- 参数:
rootEntityName- The entity name that is the root of the hierarchy containing the natural id- 返回:
- NaturalIdCacheStatistics
-
getNaturalIdCacheStatistics
public DeprecatedNaturalIdCacheStatisticsImpl getNaturalIdCacheStatistics(String regionName)
从接口复制的说明:StatisticsNatural id cache statistics per region- 指定者:
getNaturalIdCacheStatistics在接口中Statistics- 参数:
regionName- region name- 返回:
- NaturalIdCacheStatistics
-
getNaturalIdQueryExecutionCount
public long getNaturalIdQueryExecutionCount()
从接口复制的说明:StatisticsGet the global number of natural id queries executed against the database- 指定者:
getNaturalIdQueryExecutionCount在接口中Statistics
-
getNaturalIdQueryExecutionMaxTime
public long getNaturalIdQueryExecutionMaxTime()
从接口复制的说明:StatisticsGet the global maximum query time for natural id queries executed against the database- 指定者:
getNaturalIdQueryExecutionMaxTime在接口中Statistics
-
getNaturalIdQueryExecutionMaxTimeRegion
public String getNaturalIdQueryExecutionMaxTimeRegion()
从接口复制的说明:StatisticsGet the region for the maximum natural id query time
-
getNaturalIdQueryExecutionMaxTimeEntity
public String getNaturalIdQueryExecutionMaxTimeEntity()
从接口复制的说明:StatisticsGet the entity for the maximum natural id query time
-
getNaturalIdCacheHitCount
public long getNaturalIdCacheHitCount()
从接口复制的说明:StatisticsGet the global number of cached natural id lookups successfully retrieved from cache- 指定者:
getNaturalIdCacheHitCount在接口中Statistics
-
getNaturalIdCacheMissCount
public long getNaturalIdCacheMissCount()
从接口复制的说明:StatisticsGet the global number of cached natural id lookups *not* found in cache- 指定者:
getNaturalIdCacheMissCount在接口中Statistics
-
getNaturalIdCachePutCount
public long getNaturalIdCachePutCount()
从接口复制的说明:StatisticsGet the global number of cacheable natural id lookups put in cache- 指定者:
getNaturalIdCachePutCount在接口中Statistics
-
naturalIdCachePut
public void naturalIdCachePut(NavigableRole rootEntityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a put into natural id cache.- 指定者:
naturalIdCachePut在接口中StatisticsImplementor
-
naturalIdCacheHit
public void naturalIdCacheHit(NavigableRole rootEntityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from natural id cache resulted in a hit.- 指定者:
naturalIdCacheHit在接口中StatisticsImplementor
-
naturalIdCacheMiss
public void naturalIdCacheMiss(NavigableRole rootEntityName, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from natural id cache resulted in a miss.- 指定者:
naturalIdCacheMiss在接口中StatisticsImplementor
-
naturalIdQueryExecuted
public void naturalIdQueryExecuted(String rootEntityName, long time)
从接口复制的说明:StatisticsImplementorCallback indicating execution of a natural id query- 指定者:
naturalIdQueryExecuted在接口中StatisticsImplementor
-
getSecondLevelCacheRegionNames
public String[] getSecondLevelCacheRegionNames()
从接口复制的说明:StatisticsGet all second-level cache region names. Note: for backwards compatibility this method returns just the names of regions storing domain data, not query result regions- 指定者:
getSecondLevelCacheRegionNames在接口中Statistics
-
getDomainDataRegionStatistics
public CacheRegionStatisticsImpl getDomainDataRegionStatistics(String regionName)
从接口复制的说明:StatisticsSecond-level cache statistics per domain data (entity, collection, natural-id) region- 指定者:
getDomainDataRegionStatistics在接口中Statistics- 参数:
regionName- The unqualified region name- 返回:
- The stats for the named region, or
nullif the second level cache is not enabled
-
getQueryRegionStatistics
public CacheRegionStatisticsImpl getQueryRegionStatistics(String regionName)
从接口复制的说明:StatisticsSecond-level cache statistics per query region- 指定者:
getQueryRegionStatistics在接口中Statistics- 参数:
regionName- The unqualified region name- 返回:
- Stats for the named region, or
nullif (1) query result caching is not enabled or (2) no query region exists with that name
-
getCacheRegionStatistics
public CacheRegionStatisticsImpl getCacheRegionStatistics(String regionName)
从接口复制的说明:StatisticsGet statistics for either a domain-data or query-result region - this method checks both, preferring domain data region if one. Think of it as a cascading check to: Note that returning null is preferred here over throwing an exception when no region exists with that name.- 指定者:
getCacheRegionStatistics在接口中Statistics- 参数:
regionName- The unqualified region name- 返回:
- Stats for the named region, or
nullif no such region exists
-
getSecondLevelCacheStatistics
public CacheRegionStatisticsImpl getSecondLevelCacheStatistics(String regionName)
从接口复制的说明:StatisticsSecond-level cache statistics per region- 指定者:
getSecondLevelCacheStatistics在接口中Statistics- 参数:
regionName- qualified region name- 返回:
- SecondLevelCacheStatistics or
nullif the second level cache is not enabled
-
getSecondLevelCacheHitCount
public long getSecondLevelCacheHitCount()
从接口复制的说明:StatisticsGlobal number of cacheable entities/collections successfully retrieved from the cache- 指定者:
getSecondLevelCacheHitCount在接口中Statistics
-
getSecondLevelCacheMissCount
public long getSecondLevelCacheMissCount()
从接口复制的说明:StatisticsGlobal number of cacheable entities/collections not found in the cache and loaded from the database.- 指定者:
getSecondLevelCacheMissCount在接口中Statistics
-
getSecondLevelCachePutCount
public long getSecondLevelCachePutCount()
从接口复制的说明:StatisticsGlobal number of cacheable entities/collections put in the cache- 指定者:
getSecondLevelCachePutCount在接口中Statistics
-
getUpdateTimestampsCacheHitCount
public long getUpdateTimestampsCacheHitCount()
从接口复制的说明:StatisticsGet the global number of timestamps successfully retrieved from cache- 指定者:
getUpdateTimestampsCacheHitCount在接口中Statistics
-
getUpdateTimestampsCacheMissCount
public long getUpdateTimestampsCacheMissCount()
从接口复制的说明:StatisticsGet the global number of timestamp requests that were not found in the cache- 指定者:
getUpdateTimestampsCacheMissCount在接口中Statistics
-
getUpdateTimestampsCachePutCount
public long getUpdateTimestampsCachePutCount()
从接口复制的说明:StatisticsGet the global number of timestamps put in cache- 指定者:
getUpdateTimestampsCachePutCount在接口中Statistics
-
updateTimestampsCacheHit
public void updateTimestampsCacheHit()
从接口复制的说明:StatisticsImplementorCallback indicating a hit to the timestamp cache
-
updateTimestampsCacheMiss
public void updateTimestampsCacheMiss()
从接口复制的说明:StatisticsImplementorCallback indicating a miss to the timestamp cache
-
updateTimestampsCachePut
public void updateTimestampsCachePut()
从接口复制的说明:StatisticsImplementorCallback indicating a put to the timestamp cache
-
getQueries
public String[] getQueries()
从接口复制的说明:StatisticsGet all executed query strings. The maximum number of queries tracked by the Hibernate statistics is given by thehibernate.statistics.query_max_sizeproperty.- 指定者:
getQueries在接口中Statistics
-
getQueryStatistics
public QueryStatisticsImpl getQueryStatistics(String queryString)
从接口复制的说明:StatisticsQuery statistics from query string (HQL or SQL)- 指定者:
getQueryStatistics在接口中Statistics- 参数:
queryString- query string- 返回:
- QueryStatistics
-
getQueryExecutionCount
public long getQueryExecutionCount()
从接口复制的说明:StatisticsGet global number of executed queries- 指定者:
getQueryExecutionCount在接口中Statistics- 返回:
- query execution count
-
getQueryCacheHitCount
public long getQueryCacheHitCount()
从接口复制的说明:StatisticsGet the global number of cached queries successfully retrieved from cache- 指定者:
getQueryCacheHitCount在接口中Statistics
-
getQueryCacheMissCount
public long getQueryCacheMissCount()
从接口复制的说明:StatisticsGet the global number of cached queries *not* found in cache- 指定者:
getQueryCacheMissCount在接口中Statistics
-
getQueryCachePutCount
public long getQueryCachePutCount()
从接口复制的说明:StatisticsGet the global number of cacheable queries put in cache- 指定者:
getQueryCachePutCount在接口中Statistics
-
getQueryExecutionMaxTimeQueryString
public String getQueryExecutionMaxTimeQueryString()
从接口复制的说明:StatisticsGet the query string for the slowest query.
-
getQueryExecutionMaxTime
public long getQueryExecutionMaxTime()
从接口复制的说明:StatisticsGet the time in milliseconds of the slowest query.- 指定者:
getQueryExecutionMaxTime在接口中Statistics
-
queryExecuted
public void queryExecuted(String hql, int rows, long time)
从接口复制的说明:StatisticsImplementorCallback indicating execution of a sql/hql query- 指定者:
queryExecuted在接口中StatisticsImplementor- 参数:
hql- The queryrows- Number of rows returnedtime- execution time
-
queryCacheHit
public void queryCacheHit(String hql, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from the query cache resulted in a hit.- 指定者:
queryCacheHit在接口中StatisticsImplementor- 参数:
hql- The queryregionName- The name of the cache region
-
queryCacheMiss
public void queryCacheMiss(String hql, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a get from the query cache resulted in a miss.- 指定者:
queryCacheMiss在接口中StatisticsImplementor- 参数:
hql- The queryregionName- The name of the cache region
-
queryCachePut
public void queryCachePut(String hql, String regionName)
从接口复制的说明:StatisticsImplementorCallback indicating a put into the query cache.- 指定者:
queryCachePut在接口中StatisticsImplementor- 参数:
hql- The queryregionName- The cache region
-
getQueryPlanCacheHitCount
public long getQueryPlanCacheHitCount()
从接口复制的说明:StatisticsGet the global number of query plans successfully retrieved from cache- 指定者:
getQueryPlanCacheHitCount在接口中Statistics
-
getQueryPlanCacheMissCount
public long getQueryPlanCacheMissCount()
从接口复制的说明:StatisticsGet the global number of query plans lookups *not* found in cache- 指定者:
getQueryPlanCacheMissCount在接口中Statistics
-
queryCompiled
public void queryCompiled(String hql, long microseconds)
从接口复制的说明:StatisticsImplementorCallback indicating compilation of a sql/hql query- 指定者:
queryCompiled在接口中StatisticsImplementor- 参数:
hql- The querymicroseconds- execution time
-
queryPlanCacheHit
public void queryPlanCacheHit(String hql)
从接口复制的说明:StatisticsImplementorCallback indicating a get from the query plan cache resulted in a hit.- 指定者:
queryPlanCacheHit在接口中StatisticsImplementor- 参数:
hql- The query
-
getSessionOpenCount
public long getSessionOpenCount()
从接口复制的说明:StatisticsGlobal number of sessions opened- 指定者:
getSessionOpenCount在接口中Statistics
-
getSessionCloseCount
public long getSessionCloseCount()
从接口复制的说明:StatisticsGlobal number of sessions closed- 指定者:
getSessionCloseCount在接口中Statistics
-
getFlushCount
public long getFlushCount()
从接口复制的说明:StatisticsGet the global number of flush operations executed (either manual or automatic).- 指定者:
getFlushCount在接口中Statistics
-
getConnectCount
public long getConnectCount()
从接口复制的说明:StatisticsGet 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)- 指定者:
getConnectCount在接口中Statistics
-
getSuccessfulTransactionCount
public long getSuccessfulTransactionCount()
从接口复制的说明:StatisticsThe number of transactions we know to have been successful- 指定者:
getSuccessfulTransactionCount在接口中Statistics
-
getTransactionCount
public long getTransactionCount()
从接口复制的说明:StatisticsThe number of transactions we know to have completed- 指定者:
getTransactionCount在接口中Statistics
-
getCloseStatementCount
public long getCloseStatementCount()
从接口复制的说明:StatisticsThe number of prepared statements that were released- 指定者:
getCloseStatementCount在接口中Statistics
-
getPrepareStatementCount
public long getPrepareStatementCount()
从接口复制的说明:StatisticsThe number of prepared statements that were acquired- 指定者:
getPrepareStatementCount在接口中Statistics
-
openSession
public void openSession()
从接口复制的说明:StatisticsImplementorCallback about a session being opened.- 指定者:
openSession在接口中StatisticsImplementor
-
closeSession
public void closeSession()
从接口复制的说明:StatisticsImplementorCallback about a session being closed.- 指定者:
closeSession在接口中StatisticsImplementor
-
flush
public void flush()
从接口复制的说明:StatisticsImplementorCallback about a flush occurring- 指定者:
flush在接口中StatisticsImplementor
-
connect
public void connect()
从接口复制的说明:StatisticsImplementorCallback about a connection being obtained fromConnectionProvider- 指定者:
connect在接口中StatisticsImplementor
-
prepareStatement
public void prepareStatement()
从接口复制的说明:StatisticsImplementorCallback about a statement being prepared.- 指定者:
prepareStatement在接口中StatisticsImplementor
-
closeStatement
public void closeStatement()
从接口复制的说明:StatisticsImplementorCallback about a statement being closed.- 指定者:
closeStatement在接口中StatisticsImplementor
-
endTransaction
public void endTransaction(boolean success)
从接口复制的说明:StatisticsImplementorCallback about a transaction completing.- 指定者:
endTransaction在接口中StatisticsImplementor- 参数:
success- Was the transaction successful?
-
logSummary
public void logSummary()
从接口复制的说明:Statisticslog in info level the main statistics- 指定者:
logSummary在接口中Statistics
-
-