mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
56 lines
887 B
Java
56 lines
887 B
Java
package io.ebean.meta;
|
|
|
|
|
|
/**
|
|
* Timed execution statistics.
|
|
*/
|
|
public interface MetaTimedMetric {
|
|
|
|
/**
|
|
* Return the metric type.
|
|
*/
|
|
MetricType getMetricType();
|
|
|
|
/**
|
|
* Return the metric name.
|
|
*/
|
|
String getName();
|
|
|
|
/**
|
|
* Return the metric location if defined.
|
|
*/
|
|
String getLocation();
|
|
|
|
/**
|
|
* Return the time the counters started from.
|
|
*/
|
|
long getStartTime();
|
|
|
|
/**
|
|
* Return the total count.
|
|
*/
|
|
long getCount();
|
|
|
|
/**
|
|
* Return the total execution time in micros.
|
|
*/
|
|
long getTotal();
|
|
|
|
/**
|
|
* Return the max execution time in micros.
|
|
*/
|
|
long getMax();
|
|
|
|
/**
|
|
* Return the mean execution time in micros.
|
|
*/
|
|
long getMean();
|
|
|
|
/**
|
|
* Return the total beans or rows processed or loaded.
|
|
*
|
|
* This will be 0 if the metric isn't a query plan (like transaction execution statistics).
|
|
*/
|
|
long getBeanCount();
|
|
}
|