public interface StatisticsImplementor extends Statistics, Service
Statistics SPI for the Hibernate core. This is essentially the "statistic collector" API, its the contract called to collect various stats.
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession()
Callback about a session being closed.
|
void |
closeStatement()
Callback about a statement being closed.
|
void |
collectionCacheHit(NavigableRole collectionRole,
String regionName)
Callback indicating a get from second level cache resulted in a hit.
|
void |
collectionCacheMiss(NavigableRole collectionRole,
String regionName)
Callback indicating a get from second level cache resulted in a miss.
|
void |
collectionCachePut(NavigableRole collectionRole,
String regionName)
Callback indicating a put into second level cache.
|
void |
connect()
Callback about a connection being obtained from
ConnectionProvider |
void |
deleteEntity(String entityName)
Callback about an entity being deleted.
|
void |
endTransaction(boolean success)
Callback about a transaction completing.
|
void |
entityCacheHit(NavigableRole entityName,
String regionName)
Callback indicating a get from second level cache resulted in a hit.
|
void |
entityCacheMiss(NavigableRole entityName,
String regionName)
Callback indicating a get from second level cache resulted in a miss.
|
void |
entityCachePut(NavigableRole entityName,
String regionName)
Callback indicating a put into second level cache.
|
void |
fetchCollection(String role)
Callback to indicate a collection being fetched.
|
void |
fetchEntity(String entityName)
Callback about an entity being fetched.
|
void |
flush()
Callback about a flush occurring
|
void |
insertEntity(String entityName)
Callback about an entity being inserted
|
void |
loadCollection(String role)
Callback about a collection loading.
|
void |
loadEntity(String entityName)
Callback about an entity being loaded.
|
void |
naturalIdCacheHit(NavigableRole rootEntityName,
String regionName)
Callback indicating a get from natural id cache resulted in a hit.
|
void |
naturalIdCacheMiss(NavigableRole rootEntityName,
String regionName)
Callback indicating a get from natural id cache resulted in a miss.
|
void |
naturalIdCachePut(NavigableRole rootEntityName,
String regionName)
Callback indicating a put into natural id cache.
|
void |
naturalIdQueryExecuted(String rootEntityName,
long executionTime)
Callback indicating execution of a natural id query
|
void |
openSession()
Callback about a session being opened.
|
void |
optimisticFailure(String entityName)
Callback about an optimistic lock failure on an entity
|
void |
prepareStatement()
Callback about a statement being prepared.
|
void |
queryCacheHit(String hql,
String regionName)
Callback indicating a get from the query cache resulted in a hit.
|
void |
queryCacheMiss(String hql,
String regionName)
Callback indicating a get from the query cache resulted in a miss.
|
void |
queryCachePut(String hql,
String regionName)
Callback indicating a put into the query cache.
|
void |
queryExecuted(String hql,
int rows,
long time)
Callback indicating execution of a sql/hql query
|
void |
recreateCollection(String role)
Callback indicating a collection recreation (full deletion + full (re-)insertion).
|
void |
removeCollection(String role)
Callback indicating a collection removal.
|
void |
updateCollection(String role)
Callback indicating a collection was updated.
|
void |
updateEntity(String entityName)
Callback about an entity being updated.
|
void |
updateTimestampsCacheHit()
Callback indicating a hit to the timestamp cache
|
void |
updateTimestampsCacheMiss()
Callback indicating a miss to the timestamp cache
|
void |
updateTimestampsCachePut()
Callback indicating a put to the timestamp cache
|
clear, getCacheRegionStatistics, getCloseStatementCount, getCollectionFetchCount, getCollectionLoadCount, getCollectionRecreateCount, getCollectionRemoveCount, getCollectionRoleNames, getCollectionStatistics, getCollectionUpdateCount, getConnectCount, getDomainDataRegionStatistics, getEntityDeleteCount, getEntityFetchCount, getEntityInsertCount, getEntityLoadCount, getEntityNames, getEntityStatistics, getEntityUpdateCount, getFlushCount, getNaturalIdCacheHitCount, getNaturalIdCacheMissCount, getNaturalIdCachePutCount, getNaturalIdCacheStatistics, getNaturalIdQueryExecutionCount, getNaturalIdQueryExecutionMaxTime, getNaturalIdQueryExecutionMaxTimeEntity, getNaturalIdQueryExecutionMaxTimeRegion, getNaturalIdStatistics, getOptimisticFailureCount, getPrepareStatementCount, getQueries, getQueryCacheHitCount, getQueryCacheMissCount, getQueryCachePutCount, getQueryExecutionCount, getQueryExecutionMaxTime, getQueryExecutionMaxTimeQueryString, getQueryRegionStatistics, getQueryStatistics, getSecondLevelCacheHitCount, getSecondLevelCacheMissCount, getSecondLevelCachePutCount, getSecondLevelCacheRegionNames, getSecondLevelCacheStatistics, getSessionCloseCount, getSessionOpenCount, getStartTime, getSuccessfulTransactionCount, getTransactionCount, getUpdateTimestampsCacheHitCount, getUpdateTimestampsCacheMissCount, getUpdateTimestampsCachePutCount, isStatisticsEnabled, logSummary, setStatisticsEnabledvoid openSession()
Callback about a session being opened.
void closeSession()
Callback about a session being closed.
void flush()
Callback about a flush occurring
void connect()
Callback about a connection being obtained from ConnectionProvider
void prepareStatement()
Callback about a statement being prepared.
void closeStatement()
Callback about a statement being closed.
void endTransaction(boolean success)
Callback about a transaction completing.
success - Was the transaction successful?void loadEntity(String entityName)
Callback 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.
entityName - The name of the entity loaded.void fetchEntity(String entityName)
Callback about an entity being fetched. Unlike loadEntity(java.lang.String) this indicates a separate query being
performed.
entityName - The name of the entity fetched.void updateEntity(String entityName)
Callback about an entity being updated.
entityName - The name of the entity updated.void insertEntity(String entityName)
Callback about an entity being inserted
entityName - The name of the entity insertedvoid deleteEntity(String entityName)
Callback about an entity being deleted.
entityName - The name of the entity deleted.void optimisticFailure(String entityName)
Callback about an optimistic lock failure on an entity
entityName - The name of the entity.void loadCollection(String role)
Callback 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.
role - The collection role.void fetchCollection(String role)
Callback to indicate a collection being fetched. Unlike loadCollection(java.lang.String), this indicates a separate
query was needed.
role - The collection role.void updateCollection(String role)
Callback indicating a collection was updated.
role - The collection role.void recreateCollection(String role)
Callback indicating a collection recreation (full deletion + full (re-)insertion).
role - The collection role.void removeCollection(String role)
Callback indicating a collection removal.
role - The collection role.void entityCachePut(NavigableRole entityName, String regionName)
Callback indicating a put into second level cache.
void entityCacheHit(NavigableRole entityName, String regionName)
Callback indicating a get from second level cache resulted in a hit.
void entityCacheMiss(NavigableRole entityName, String regionName)
Callback indicating a get from second level cache resulted in a miss.
void collectionCachePut(NavigableRole collectionRole, String regionName)
Callback indicating a put into second level cache.
collectionRole - The collection’s "path"regionName - The name of the cache regionvoid collectionCacheHit(NavigableRole collectionRole, String regionName)
Callback indicating a get from second level cache resulted in a hit.
collectionRole - The collection’s "path"regionName - The name of the cache regionvoid collectionCacheMiss(NavigableRole collectionRole, String regionName)
Callback indicating a get from second level cache resulted in a miss.
collectionRole - The collection’s "path"regionName - The name of the cache regionvoid naturalIdCachePut(NavigableRole rootEntityName, String regionName)
Callback indicating a put into natural id cache.
void naturalIdCacheHit(NavigableRole rootEntityName, String regionName)
Callback indicating a get from natural id cache resulted in a hit.
void naturalIdCacheMiss(NavigableRole rootEntityName, String regionName)
Callback indicating a get from natural id cache resulted in a miss.
void naturalIdQueryExecuted(String rootEntityName, long executionTime)
Callback indicating execution of a natural id query
void queryCachePut(String hql, String regionName)
Callback indicating a put into the query cache.
hql - The queryregionName - The cache regionvoid queryCacheHit(String hql, String regionName)
Callback indicating a get from the query cache resulted in a hit.
hql - The queryregionName - The name of the cache regionvoid queryCacheMiss(String hql, String regionName)
Callback indicating a get from the query cache resulted in a miss.
hql - The queryregionName - The name of the cache regionvoid queryExecuted(String hql, int rows, long time)
Callback indicating execution of a sql/hql query
hql - The queryrows - Number of rows returnedtime - execution timevoid updateTimestampsCacheHit()
Callback indicating a hit to the timestamp cache
void updateTimestampsCacheMiss()
Callback indicating a miss to the timestamp cache
void updateTimestampsCachePut()
Callback indicating a put to the timestamp cache
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.