Class HibernateStatsReporter

java.lang.Object
org.keycloak.connections.jpa.HibernateStatsReporter
All Implemented Interfaces:
KeycloakSessionTask, ScheduledTask

public class HibernateStatsReporter extends Object implements ScheduledTask
Author:
Marek Posolda
  • Constructor Details

    • HibernateStatsReporter

      public HibernateStatsReporter(jakarta.persistence.EntityManagerFactory emf)
  • Method Details

    • run

      public void run(KeycloakSession session)
      Specified by:
      run in interface KeycloakSessionTask
    • 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)