Package org.keycloak.connections.jpa
Class HibernateStatsReporter
java.lang.Object
org.keycloak.connections.jpa.HibernateStatsReporter
- All Implemented Interfaces:
KeycloakSessionTask,ScheduledTask
- Author:
- Marek Posolda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlogCollections(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected voidlogEntities(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected voidlogQueries(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected voidlogStats(org.hibernate.stat.Statistics stats) voidrun(KeycloakSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.timer.ScheduledTask
getTaskName
-
Constructor Details
-
HibernateStatsReporter
public HibernateStatsReporter(jakarta.persistence.EntityManagerFactory emf)
-
-
Method Details
-
run
- Specified by:
runin interfaceKeycloakSessionTask
-
logStats
protected void logStats(org.hibernate.stat.Statistics stats) -
logEntities
protected void logEntities(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) -
logCollections
protected void logCollections(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) -
logQueries
protected void logQueries(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats)
-