Package org.keycloak.connections.jpa
Class HibernateStatsReporter
java.lang.Object
org.keycloak.connections.jpa.HibernateStatsReporter
- All Implemented Interfaces:
ScheduledTask
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
logCollections
(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected void
logEntities
(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected void
logQueries
(StringBuilder builder, String lineSep, org.hibernate.stat.Statistics stats) protected void
logStats
(org.hibernate.stat.Statistics stats) void
run
(KeycloakSession session)
-
Constructor Details
-
HibernateStatsReporter
public HibernateStatsReporter(jakarta.persistence.EntityManagerFactory emf)
-
-
Method Details
-
run
- Specified by:
run
in interfaceScheduledTask
-
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)
-