java.lang.Object | |
↳ | org.hibernate.stat.ConcurrentStatisticsImpl |
Implementation of Statistics
, as well as StatisticsImplementor
, based on the
java.util.concurrent
package introduced in Java 5.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
reset all statistics
| |||||||||||
Callback about a session being closed.
| |||||||||||
Callback about a statement being closed.
| |||||||||||
Callback about a connection being obtained from
ConnectionProvider
| |||||||||||
Callback about an entity being deleted.
| |||||||||||
Callback about a transaction completing.
| |||||||||||
Callback to indicate a collection being fetched.
| |||||||||||
Callback about an entity being fetched.
| |||||||||||
Callback about a flush occurring
| |||||||||||
The number of prepared statements that were released
| |||||||||||
Global number of collections fetched
| |||||||||||
Global number of collections loaded
| |||||||||||
Global number of collections recreated
| |||||||||||
Global number of collections removed
| |||||||||||
Get the names of all collection roles
| |||||||||||
Get collection statistics per role
| |||||||||||
Global number of collections updated
| |||||||||||
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)
| |||||||||||
Get global number of entity deletes
| |||||||||||
Get global number of entity fetchs
| |||||||||||
Get global number of entity inserts
| |||||||||||
Get global number of entity loads
| |||||||||||
Get the names of all entities
| |||||||||||
find entity statistics per name
| |||||||||||
Get global number of entity updates
| |||||||||||
Get the global number of flush executed by sessions (either implicit or explicit)
| |||||||||||
The number of StaleObjectStateExceptions
that occurred
| |||||||||||
The number of prepared statements that were acquired
| |||||||||||
Get all executed query strings
| |||||||||||
Get the global number of cached queries successfully retrieved from cache
| |||||||||||
Get the global number of cached queries *not* found in cache
| |||||||||||
Get the global number of cacheable queries put in cache
| |||||||||||
Get global number of executed queries
| |||||||||||
Get the time in milliseconds of the slowest query.
| |||||||||||
Get the query string for the slowest query.
| |||||||||||
Query statistics from query string (HQL or SQL)
| |||||||||||
Global number of cacheable entities/collections successfully retrieved from the cache
| |||||||||||
Global number of cacheable entities/collections not found in the cache and loaded from the database.
| |||||||||||
Global number of cacheable entities/collections put in the cache
| |||||||||||
Get all second-level cache region names
| |||||||||||
Second level cache statistics per region
| |||||||||||
Global number of sessions closed
| |||||||||||
Global number of sessions opened
| |||||||||||
The number of transactions we know to have been successful
| |||||||||||
The number of transactions we know to have completed
| |||||||||||
Callback about an entity being inserted
| |||||||||||
Are statistics logged
| |||||||||||
Callback about a collection loading.
| |||||||||||
Callback about an entity being loaded.
| |||||||||||
log in info level the main statistics
| |||||||||||
Callback about a session being opened.
| |||||||||||
Callback about an optimistic lock failure on an entity
| |||||||||||
Callback about a statement being prepared.
| |||||||||||
Callback indicating a get from the query cache resulted in a hit.
| |||||||||||
Callback indicating a get from the query cache resulted in a miss.
| |||||||||||
Callback indicating a put into the query cache.
| |||||||||||
Callback indicating execution of a sql/hql query
| |||||||||||
Callback indicating a collection recreation (full deletion + full (re-)insertion).
| |||||||||||
Callback indicating a collection removal.
| |||||||||||
Callback indicating a get from second level cache resulted in a hit.
| |||||||||||
Callback indicating a get from second level cache resulted in a miss.
| |||||||||||
Callback indicating a put into second level cache.
| |||||||||||
Enable statistics logs (this is a dynamic parameter)
| |||||||||||
Callback indicating a collection was updated.
| |||||||||||
Callback about an entity being updated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.stat.Statistics
| |||||||||||
From interface
org.hibernate.stat.StatisticsImplementor
|
reset all statistics
Callback about a session being closed.
Callback about a statement being closed.
Callback about an entity being deleted.
entityName | The name of the entity deleted. |
---|
Callback about a transaction completing.
success | Was the transaction successful? |
---|
Callback to indicate a collection being fetched. Unlike loadCollection(String)
, this indicates a separate
query was needed.
role | The collection role. |
---|
Callback about an entity being fetched. Unlike loadEntity(String)
this indicates a separate query being
performed.
entityName | The name of the entity fetched. |
---|
Callback about a flush occurring
The number of prepared statements that were released
Global number of collections fetched
Global number of collections loaded
Global number of collections recreated
Global number of collections removed
Get collection statistics per role
role | collection role |
---|
Global number of collections updated
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)
Get global number of entity deletes
Get global number of entity fetchs
Get global number of entity inserts
Get global number of entity loads
find entity statistics per name
entityName | entity name |
---|
Get global number of entity updates
Get the global number of flush executed by sessions (either implicit or explicit)
The number of StaleObjectStateExceptions that occurred
The number of prepared statements that were acquired
Get the global number of cached queries successfully retrieved from cache
Get the global number of cached queries *not* found in cache
Get the global number of cacheable queries put in cache
Get global number of executed queries
Get the time in milliseconds of the slowest query.
Query statistics from query string (HQL or SQL)
queryString | query string |
---|
Global number of cacheable entities/collections successfully retrieved from the cache
Global number of cacheable entities/collections not found in the cache and loaded from the database.
Global number of cacheable entities/collections put in the cache
Second level cache statistics per region
regionName | region name |
---|
Global number of sessions closed
Global number of sessions opened
The number of transactions we know to have been successful
The number of transactions we know to have completed
Callback about an entity being inserted
entityName | The name of the entity inserted |
---|
Are statistics logged
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. |
---|
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. |
---|
log in info level the main statistics
Callback about a session being opened.
Callback about an optimistic lock failure on an entity
entityName | The name of the entity. |
---|
Callback about a statement being prepared.
Callback indicating a get from the query cache resulted in a hit.
hql | The query |
---|---|
regionName | The name of the cache region |
Callback indicating a get from the query cache resulted in a miss.
hql | The query |
---|---|
regionName | The name of the cache region |
Callback indicating a put into the query cache.
hql | The query |
---|---|
regionName | The cache region |
Callback indicating execution of a sql/hql query
hql | The query |
---|---|
rows | Number of rows returned |
time | execution time |
Callback indicating a collection recreation (full deletion + full (re-)insertion).
role | The collection role. |
---|
Callback indicating a collection removal.
role | The collection role. |
---|
Callback indicating a get from second level cache resulted in a hit.
regionName | The name of the cache region |
---|
Callback indicating a get from second level cache resulted in a miss.
regionName | The name of the cache region |
---|
Callback indicating a put into second level cache.
regionName | The name of the cache region |
---|
Enable statistics logs (this is a dynamic parameter)
Callback indicating a collection was updated.
role | The collection role. |
---|
Callback about an entity being updated.
entityName | The name of the entity updated. |
---|