All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.meta.MetaInfoManager Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
package io.ebean.meta;

import java.util.List;

/**
 * Provides access to the meta data in EbeanServer such as query execution statistics.
 */
public interface MetaInfoManager {

  /**
   * Visit the metrics resetting and collecting/reporting as desired.
   */
  void visitMetrics(MetricVisitor visitor);

  /**
   * Run a visit collecting all the metrics and returning BasicMetricVisitor
   * which holds all the metrics in simple lists.
   */
  BasicMetricVisitor visitBasic();

  /**
   * Just reset all the metrics. Maybe only useful for testing purposes.
   */
  void resetAllMetrics();

  /**
   * Collect and return the ObjectGraphNode statistics.
   * 

* These show query executions based on an origin point and relative path. * This is used to look at the amount of lazy loading occurring for a given * query origin point and highlight potential for tuning a query. *

* * @param reset Set to true to reset the underlying statistics after collection. */ List collectNodeStatistics(boolean reset); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy