Package org.hibernate.engine.internal
Class StatisticalLoggingSessionEventListener
java.lang.Object
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener
- All Implemented Interfaces:
Serializable,SessionEventListener
Tracks and logs certain session-level metrics.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheGetEnd(boolean hit) voidvoidvoidvoidend()voidflushEnd(int numberOfEntities, int numberOfCollections) voidstatic booleanUsed by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listenervoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidpartialFlushEnd(int numberOfEntities, int numberOfCollections) voidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.SessionEventListener
dirtyCalculationEnd, dirtyCalculationStart, transactionCompletion
-
Constructor Details
-
StatisticalLoggingSessionEventListener
public StatisticalLoggingSessionEventListener()
-
-
Method Details
-
isLoggingEnabled
public static boolean isLoggingEnabled()Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listener- Returns:
trueif logging is enabled for this listener.
-
jdbcConnectionAcquisitionStart
public void jdbcConnectionAcquisitionStart()- Specified by:
jdbcConnectionAcquisitionStartin interfaceSessionEventListener
-
jdbcConnectionAcquisitionEnd
public void jdbcConnectionAcquisitionEnd()- Specified by:
jdbcConnectionAcquisitionEndin interfaceSessionEventListener
-
jdbcConnectionReleaseStart
public void jdbcConnectionReleaseStart()- Specified by:
jdbcConnectionReleaseStartin interfaceSessionEventListener
-
jdbcConnectionReleaseEnd
public void jdbcConnectionReleaseEnd()- Specified by:
jdbcConnectionReleaseEndin interfaceSessionEventListener
-
jdbcPrepareStatementStart
public void jdbcPrepareStatementStart()- Specified by:
jdbcPrepareStatementStartin interfaceSessionEventListener
-
jdbcPrepareStatementEnd
public void jdbcPrepareStatementEnd()- Specified by:
jdbcPrepareStatementEndin interfaceSessionEventListener
-
jdbcExecuteStatementStart
public void jdbcExecuteStatementStart()- Specified by:
jdbcExecuteStatementStartin interfaceSessionEventListener
-
jdbcExecuteStatementEnd
public void jdbcExecuteStatementEnd()- Specified by:
jdbcExecuteStatementEndin interfaceSessionEventListener
-
jdbcExecuteBatchStart
public void jdbcExecuteBatchStart()- Specified by:
jdbcExecuteBatchStartin interfaceSessionEventListener
-
jdbcExecuteBatchEnd
public void jdbcExecuteBatchEnd()- Specified by:
jdbcExecuteBatchEndin interfaceSessionEventListener
-
cachePutStart
public void cachePutStart()- Specified by:
cachePutStartin interfaceSessionEventListener
-
cachePutEnd
public void cachePutEnd()- Specified by:
cachePutEndin interfaceSessionEventListener
-
cacheGetStart
public void cacheGetStart()- Specified by:
cacheGetStartin interfaceSessionEventListener
-
cacheGetEnd
public void cacheGetEnd(boolean hit) - Specified by:
cacheGetEndin interfaceSessionEventListener
-
flushStart
public void flushStart()- Specified by:
flushStartin interfaceSessionEventListener
-
flushEnd
public void flushEnd(int numberOfEntities, int numberOfCollections) - Specified by:
flushEndin interfaceSessionEventListener
-
prePartialFlushStart
public void prePartialFlushStart()- Specified by:
prePartialFlushStartin interfaceSessionEventListener
-
prePartialFlushEnd
public void prePartialFlushEnd()- Specified by:
prePartialFlushEndin interfaceSessionEventListener
-
partialFlushStart
public void partialFlushStart()- Specified by:
partialFlushStartin interfaceSessionEventListener
-
partialFlushEnd
public void partialFlushEnd(int numberOfEntities, int numberOfCollections) - Specified by:
partialFlushEndin interfaceSessionEventListener
-
end
public void end()- Specified by:
endin interfaceSessionEventListener
-