public interface Metric
Modifier and Type | Method and Description |
---|---|
void |
clearStatistics()
Clear the statistics resetting any internal counters etc.
|
boolean |
collectStatistics()
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.
|
void |
visit(MetricVisitor visitor)
Visit the metric typically reading and reporting the underlying statistics.
|
MetricName getName()
boolean collectStatistics()
void visit(MetricVisitor visitor) throws IOException
Typically this is use by reporters to traverse all the collected metrics for sending to a file or repository.
IOException
void clearStatistics()
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 © 2014. All Rights Reserved.