001package io.ebean.meta; 002 003 004/** 005 * Timed execution statistics. 006 */ 007public interface MetaTimedMetric { 008 009 /** 010 * Return the metric type. 011 */ 012 MetricType getMetricType(); 013 014 /** 015 * Return the metric name. 016 */ 017 String getName(); 018 019 /** 020 * Return the metric location if defined. 021 */ 022 String getLocation(); 023 024 /** 025 * Return the time the counters started from. 026 */ 027 long getStartTime(); 028 029 /** 030 * Return the total count. 031 */ 032 long getCount(); 033 034 /** 035 * Return the total execution time in micros. 036 */ 037 long getTotal(); 038 039 /** 040 * Return the max execution time in micros. 041 */ 042 long getMax(); 043 044 /** 045 * Return the mean execution time in micros. 046 */ 047 long getMean(); 048 049 /** 050 * Return the total beans or rows processed or loaded. 051 * 052 * This will be 0 if the metric isn't a query plan (like transaction execution statistics). 053 */ 054 long getBeanCount(); 055}