public class ClusterAwareTimeMetricsHolder extends BaseMetricsHolder
Use registerQueryExecutionTime(long queryTimeMs) to report an execution time.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
metricName |
HISTOGRAM_BUCKETS, longestQueryTimeMs, maximumNumberTablesAccessed, minimumNumberTablesAccessed, numberOfPreparedExecutes, numberOfPrepares, numberOfQueriesIssued, numberOfResultSetsCreated, numTablesMetricsHistBreakpoints, numTablesMetricsHistCounts, oldHistBreakpoints, oldHistCounts, perfMetricsHistBreakpoints, perfMetricsHistCounts, queryTimeCount, queryTimeMean, queryTimeSum, queryTimeSumSquares, shortestQueryTimeMs, totalQueryTimeMs| Constructor and Description |
|---|
ClusterAwareTimeMetricsHolder(java.lang.String metricName)
Initialize a metric holder with a metric name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reportMetrics(Log log)
Report collected metric to a provided logger.
|
checkAbonormallyLongQuery, incrementNumberOfPreparedExecutes, incrementNumberOfPrepares, incrementNumberOfResultSetsCreated, registerQueryExecutionTime, reportNumberOfTablesAccessed, reportQueryTimepublic ClusterAwareTimeMetricsHolder(java.lang.String metricName)
metricName - Metric namepublic void reportMetrics(Log log)
reportMetrics in class BaseMetricsHolderlog - A logger to report collected metric.