Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.stat.StatisticsImpl
Statistics
Constructor Summary | |
|
Method Summary | |
void |
|
void | |
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
long |
|
long | |
long | |
long | |
long | |
String[] |
|
CollectionStatistics |
|
long | |
long | |
long | |
long | |
long | |
long | |
String[] |
|
EntityStatistics |
|
long | |
long | |
long |
|
long |
|
String[] |
|
long |
|
long |
|
long |
|
long |
|
long | |
String |
|
QueryStatistics |
|
long | |
long | |
long | |
String[] |
|
SecondLevelCacheStatistics |
|
long | |
long | |
long | |
long |
|
long |
|
void |
|
boolean |
|
void |
|
void |
|
void |
|
void | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
String |
|
void |
|
void |
|
public void closeStatement()
- Specified by:
- closeStatement in interface StatisticsImplementor
public void deleteEntity(String entityName)
- Specified by:
- deleteEntity in interface StatisticsImplementor
public void endTransaction(boolean success)
- Specified by:
- endTransaction in interface StatisticsImplementor
public void fetchCollection(String role)
- Specified by:
- fetchCollection in interface StatisticsImplementor
public void fetchEntity(String entityName)
- Specified by:
- fetchEntity in interface StatisticsImplementor
public long getCloseStatementCount()
The number of prepared statements that were released
- Specified by:
- getCloseStatementCount in interface Statistics
public long getCollectionFetchCount()
- Specified by:
- getCollectionFetchCount in interface Statistics
- Returns:
- collection fetching (from DB)
public long getCollectionLoadCount()
- Specified by:
- getCollectionLoadCount in interface Statistics
- Returns:
- collection loading (from DB)
public long getCollectionRecreateCount()
- Specified by:
- getCollectionRecreateCount in interface Statistics
- Returns:
- collection recreation
public long getCollectionRemoveCount()
- Specified by:
- getCollectionRemoveCount in interface Statistics
- Returns:
- collection removal FIXME: even if isInverse="true"?
public String[] getCollectionRoleNames()
Get the names of all collection roles
- Specified by:
- getCollectionRoleNames in interface Statistics
public CollectionStatistics getCollectionStatistics(String role)
Get collection statistics per role
- Specified by:
- getCollectionStatistics in interface Statistics
- Parameters:
role
- collection role
- Returns:
- CollectionStatistics
public long getCollectionUpdateCount()
- Specified by:
- getCollectionUpdateCount in interface Statistics
- Returns:
- collection update
public long getConnectCount()
- Specified by:
- getConnectCount in interface Statistics
- Returns:
- session connect
public long getEntityDeleteCount()
- Specified by:
- getEntityDeleteCount in interface Statistics
- Returns:
- entity deletion count
public long getEntityFetchCount()
- Specified by:
- getEntityFetchCount in interface Statistics
- Returns:
- entity fetch (from DB)
public long getEntityInsertCount()
- Specified by:
- getEntityInsertCount in interface Statistics
- Returns:
- entity insertion count
public long getEntityLoadCount()
- Specified by:
- getEntityLoadCount in interface Statistics
- Returns:
- entity load (from DB)
public String[] getEntityNames()
Get the names of all entities
- Specified by:
- getEntityNames in interface Statistics
public EntityStatistics getEntityStatistics(String entityName)
find entity statistics per name
- Specified by:
- getEntityStatistics in interface Statistics
- Parameters:
entityName
- entity name
- Returns:
- EntityStatistics object
public long getEntityUpdateCount()
- Specified by:
- getEntityUpdateCount in interface Statistics
- Returns:
- entity update
public long getFlushCount()
- Specified by:
- getFlushCount in interface Statistics
- Returns:
- flush
public long getOptimisticFailureCount()
The number of StaleObjectStateExceptions that occurred
- Specified by:
- getOptimisticFailureCount in interface Statistics
public long getPrepareStatementCount()
The number of prepared statements that were acquired
- Specified by:
- getPrepareStatementCount in interface Statistics
public String[] getQueries()
Get all executed query strings
- Specified by:
- getQueries in interface Statistics
public long getQueryCacheHitCount()
Get the global number of cached queries successfully retrieved from cache
- Specified by:
- getQueryCacheHitCount in interface Statistics
public long getQueryCacheMissCount()
Get the global number of cached queries *not* found in cache
- Specified by:
- getQueryCacheMissCount in interface Statistics
public long getQueryCachePutCount()
Get the global number of cacheable queries put in cache
- Specified by:
- getQueryCachePutCount in interface Statistics
public long getQueryExecutionCount()
Get global number of executed queries
- Specified by:
- getQueryExecutionCount in interface Statistics
- Returns:
- query execution count
public long getQueryExecutionMaxTime()
- Specified by:
- getQueryExecutionMaxTime in interface Statistics
- Returns:
- Returns the max query execution time, for all queries
public String getQueryExecutionMaxTimeQueryString()
Get the query string for the slowest query.
- Specified by:
- getQueryExecutionMaxTimeQueryString in interface Statistics
public QueryStatistics getQueryStatistics(String queryString)
Query statistics from query string (HQL or SQL)
- Specified by:
- getQueryStatistics in interface Statistics
- Parameters:
queryString
- query string
- Returns:
- QueryStatistics
public long getSecondLevelCacheHitCount()
- Specified by:
- getSecondLevelCacheHitCount in interface Statistics
- Returns:
- second level cache hit
public long getSecondLevelCacheMissCount()
- Specified by:
- getSecondLevelCacheMissCount in interface Statistics
- Returns:
- second level cache miss
public long getSecondLevelCachePutCount()
- Specified by:
- getSecondLevelCachePutCount in interface Statistics
- Returns:
- second level cache put
public String[] getSecondLevelCacheRegionNames()
Get all second-level cache region names
- Specified by:
- getSecondLevelCacheRegionNames in interface Statistics
public SecondLevelCacheStatistics getSecondLevelCacheStatistics(String regionName)
Second level cache statistics per region
- Specified by:
- getSecondLevelCacheStatistics in interface Statistics
- Parameters:
regionName
- region name
- Returns:
- SecondLevelCacheStatistics
public long getSessionCloseCount()
- Specified by:
- getSessionCloseCount in interface Statistics
- Returns:
- session closing
public long getSessionOpenCount()
- Specified by:
- getSessionOpenCount in interface Statistics
- Returns:
- session opening
public long getStartTime()
- Specified by:
- getStartTime in interface Statistics
- Returns:
- start time in ms (JVM standards
System.currentTimeMillis()
)
public long getSuccessfulTransactionCount()
The number of transactions we know to have been successful
- Specified by:
- getSuccessfulTransactionCount in interface Statistics
public long getTransactionCount()
The number of transactions we know to have completed
- Specified by:
- getTransactionCount in interface Statistics
public void insertEntity(String entityName)
- Specified by:
- insertEntity in interface StatisticsImplementor
public boolean isStatisticsEnabled()
Are statistics logged
- Specified by:
- isStatisticsEnabled in interface Statistics
public void loadCollection(String role)
- Specified by:
- loadCollection in interface StatisticsImplementor
public void loadEntity(String entityName)
- Specified by:
- loadEntity in interface StatisticsImplementor
public void logSummary()
log in info level the main statistics
- Specified by:
- logSummary in interface Statistics
public void optimisticFailure(String entityName)
- Specified by:
- optimisticFailure in interface StatisticsImplementor
public void prepareStatement()
- Specified by:
- prepareStatement in interface StatisticsImplementor
public void queryCacheHit(String hql, String regionName)
- Specified by:
- queryCacheHit in interface StatisticsImplementor
public void queryCacheMiss(String hql, String regionName)
- Specified by:
- queryCacheMiss in interface StatisticsImplementor
public void queryCachePut(String hql, String regionName)
- Specified by:
- queryCachePut in interface StatisticsImplementor
public void queryExecuted(String hql, int rows, long time)
- Specified by:
- queryExecuted in interface StatisticsImplementor
public void recreateCollection(String role)
- Specified by:
- recreateCollection in interface StatisticsImplementor
public void removeCollection(String role)
- Specified by:
- removeCollection in interface StatisticsImplementor
public void secondLevelCacheHit(String regionName)
- Specified by:
- secondLevelCacheHit in interface StatisticsImplementor
public void secondLevelCacheMiss(String regionName)
- Specified by:
- secondLevelCacheMiss in interface StatisticsImplementor
public void secondLevelCachePut(String regionName)
- Specified by:
- secondLevelCachePut in interface StatisticsImplementor
public void setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)
- Specified by:
- setStatisticsEnabled in interface Statistics
public String toString()
public void updateCollection(String role)
- Specified by:
- updateCollection in interface StatisticsImplementor
public void updateEntity(String entityName)
- Specified by:
- updateEntity in interface StatisticsImplementor