public interface Metric
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the statistics resetting any internal counters etc.
|
void |
collect(MetricStatisticsVisitor collector)
Typically this is only called by the MetricManager and tells the metric to collect its underlying statistics for
reporting purposes and in addition resetting and internal counters it has.
|
MetricName |
getName()
Return the name of the metric.
|
MetricName getName()
void collect(MetricStatisticsVisitor collector)
void clear()
Typically the MetricManager takes care of resetting the statistic/counters for the metrics when it periodically collects and reports all the metrics and you are not expected to use this method.
Copyright © 2019. All rights reserved.