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