mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
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.
|
|
* <p>
|
|
* 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.
|
|
* </p>
|
|
*
|
|
* @param reset Set to true to reset the underlying statistics after collection.
|
|
*/
|
|
List<MetaOrmQueryNode> collectNodeStatistics(boolean reset);
|
|
|
|
}
|