org.hibernate.stat.Statistics |
Known Indirect Subclasses |
Statistics for a particular SessionFactory. Beware of milliseconds metrics, they are depdendent of the JVM precision: you may then encounter a 10 ms approximation dending on you OS platform. Please refer to the JVM documentation for more information.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
reset all statistics
| |||||||||||
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
| |||||||||||
Are statistics logged
| |||||||||||
log in info level the main statistics
| |||||||||||
Enable statistics logs (this is a dynamic parameter)
|
reset all statistics
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.
Get the query string for 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
Are statistics logged
log in info level the main statistics
Enable statistics logs (this is a dynamic parameter)