Package org.hibernate.event.monitor.spi
Interface EventMonitor
- All Known Subinterfaces:
EventManager
- All Known Implementing Classes:
EmptyEventMonitor
Contract implemented by services which collect, report, or monitor
diagnostic events involving interactions
between the session and the database
or second-level cache.
For example, this interface is implemented by Hibernate JFR to report events to Java Flight Recorder.
Note that event reporting is different to aggregate metrics,
which Hibernate exposes via the Statistics
interface.
- Since:
- 7.0
- API Note:
- This an incubating API, subject to change.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteCacheGetEvent(DiagnosticEvent cacheGetEvent, SharedSessionContractImplementor session, Region region, boolean hit) voidcompleteCacheGetEvent(DiagnosticEvent cacheGetEvent, SharedSessionContractImplementor session, Region region, CollectionPersister persister, boolean hit) voidcompleteCacheGetEvent(DiagnosticEvent cacheGetEvent, SharedSessionContractImplementor session, Region region, EntityPersister persister, boolean isNaturalKey, boolean hit) voidcompleteCachePutEvent(DiagnosticEvent cachePutEvent, SharedSessionContractImplementor session, CachedDomainDataAccess cachedDomainDataAccess, CollectionPersister persister, boolean cacheContentChanged, EventMonitor.CacheActionDescription description) voidcompleteCachePutEvent(DiagnosticEvent cachePutEvent, SharedSessionContractImplementor session, CachedDomainDataAccess cachedDomainDataAccess, EntityPersister persister, boolean cacheContentChanged, boolean isNatualId, EventMonitor.CacheActionDescription description) voidcompleteCachePutEvent(DiagnosticEvent cachePutEvent, SharedSessionContractImplementor session, CachedDomainDataAccess cachedDomainDataAccess, EntityPersister persister, boolean cacheContentChanged, EventMonitor.CacheActionDescription description) voidcompleteCachePutEvent(DiagnosticEvent cachePutEvent, SharedSessionContractImplementor session, Region region, boolean cacheContentChanged, EventMonitor.CacheActionDescription description) voidcompleteCollectionRecreateEvent(DiagnosticEvent event, Object id, String role, boolean success, SharedSessionContractImplementor session) voidcompleteCollectionRemoveEvent(DiagnosticEvent event, Object id, String role, boolean success, SharedSessionContractImplementor session) voidcompleteCollectionUpdateEvent(DiagnosticEvent event, Object id, String role, boolean success, SharedSessionContractImplementor session) voidcompleteDirtyCalculationEvent(DiagnosticEvent dirtyCalculationEvent, SharedSessionContractImplementor session, EntityPersister persister, EntityEntry entry, int[] dirtyProperties) voidcompleteEntityDeleteEvent(DiagnosticEvent event, Object id, String entityName, boolean success, SharedSessionContractImplementor session) voidcompleteEntityInsertEvent(DiagnosticEvent event, Object id, String entityName, boolean success, SharedSessionContractImplementor session) voidcompleteEntityLockEvent(DiagnosticEvent event, Object id, String entityName, LockMode lockMode, boolean success, SharedSessionContractImplementor session) voidcompleteEntityUpdateEvent(DiagnosticEvent event, Object id, String entityName, boolean success, SharedSessionContractImplementor session) voidcompleteEntityUpsertEvent(DiagnosticEvent event, Object id, String entityName, boolean success, SharedSessionContractImplementor session) voidcompleteFlushEvent(DiagnosticEvent flushEvent, FlushEvent event) voidcompleteFlushEvent(DiagnosticEvent flushEvent, FlushEvent event, boolean autoFlush) voidcompleteJdbcBatchExecutionEvent(DiagnosticEvent jdbcBatchExecutionEvent, String statementSql) voidcompleteJdbcConnectionAcquisitionEvent(DiagnosticEvent jdbcConnectionAcquisitionEvent, SharedSessionContractImplementor session, Object tenantId) voidcompleteJdbcConnectionReleaseEvent(DiagnosticEvent jdbcConnectionReleaseEvent, SharedSessionContractImplementor session, Object tenantId) voidcompleteJdbcPreparedStatementCreationEvent(DiagnosticEvent jdbcPreparedStatementCreation, String preparedStatementSql) voidcompleteJdbcPreparedStatementExecutionEvent(DiagnosticEvent jdbcPreparedStatementExecutionEvent, String preparedStatementSql) voidcompletePartialFlushEvent(DiagnosticEvent flushEvent, AutoFlushEvent event) voidcompletePrePartialFlush(DiagnosticEvent prePartialFlush, SharedSessionContractImplementor session) voidcompleteSessionClosedEvent(DiagnosticEvent sessionClosedEvent, SharedSessionContractImplementor session) voidcompleteSessionOpenEvent(DiagnosticEvent sessionOpenEvent, SharedSessionContractImplementor session)
-
Method Details
-
beginSessionOpenEvent
DiagnosticEvent beginSessionOpenEvent() -
beginSessionClosedEvent
DiagnosticEvent beginSessionClosedEvent() -
beginJdbcConnectionAcquisitionEvent
DiagnosticEvent beginJdbcConnectionAcquisitionEvent() -
beginJdbcConnectionReleaseEvent
DiagnosticEvent beginJdbcConnectionReleaseEvent() -
beginJdbcPreparedStatementCreationEvent
DiagnosticEvent beginJdbcPreparedStatementCreationEvent() -
completeJdbcPreparedStatementCreationEvent
void completeJdbcPreparedStatementCreationEvent(DiagnosticEvent jdbcPreparedStatementCreation, String preparedStatementSql) -
beginJdbcPreparedStatementExecutionEvent
DiagnosticEvent beginJdbcPreparedStatementExecutionEvent() -
completeJdbcPreparedStatementExecutionEvent
void completeJdbcPreparedStatementExecutionEvent(DiagnosticEvent jdbcPreparedStatementExecutionEvent, String preparedStatementSql) -
beginJdbcBatchExecutionEvent
DiagnosticEvent beginJdbcBatchExecutionEvent() -
completeJdbcBatchExecutionEvent
-
beginCachePutEvent
DiagnosticEvent beginCachePutEvent() -
beginCacheGetEvent
DiagnosticEvent beginCacheGetEvent() -
beginFlushEvent
DiagnosticEvent beginFlushEvent() -
completeFlushEvent
-
completeFlushEvent
-
beginPartialFlushEvent
DiagnosticEvent beginPartialFlushEvent() -
completePartialFlushEvent
-
beginDirtyCalculationEvent
DiagnosticEvent beginDirtyCalculationEvent() -
beginPrePartialFlush
DiagnosticEvent beginPrePartialFlush() -
beginEntityInsertEvent
DiagnosticEvent beginEntityInsertEvent() -
beginEntityUpdateEvent
DiagnosticEvent beginEntityUpdateEvent() -
beginEntityUpsertEvent
DiagnosticEvent beginEntityUpsertEvent() -
beginEntityDeleteEvent
DiagnosticEvent beginEntityDeleteEvent() -
beginEntityLockEvent
DiagnosticEvent beginEntityLockEvent() -
beginCollectionRecreateEvent
DiagnosticEvent beginCollectionRecreateEvent() -
beginCollectionUpdateEvent
DiagnosticEvent beginCollectionUpdateEvent() -
beginCollectionRemoveEvent
DiagnosticEvent beginCollectionRemoveEvent()
-