public class ClassifiedMetricsCollector extends MetricsCollector
| 限定符和类型 | 方法和说明 |
|---|---|
MetricsCollector |
addMetric(MetricName name,
String suffix,
Object value,
long timestamp,
MetricObject.MetricType type,
String meterName) |
MetricsCollector |
addMetric(MetricObject object) |
long |
adjustStartTime(long startTime,
long endTime,
int interval,
MetricLevel level) |
void |
collect(MetricName name,
ClusterHistogram clusterHistogram,
long timestamp) |
void |
collect(MetricName name,
Compass compass,
long timestamp) |
void |
collect(MetricName name,
Counter counter,
long timestamp) |
void |
collect(MetricName name,
FastCompass fastCompass,
long timestamp) |
void |
collect(MetricName name,
Gauge gauge,
long timestamp) |
void |
collect(MetricName name,
Histogram histogram,
long timestamp) |
void |
collect(MetricName name,
Meter meter,
long timestamp) |
void |
collect(MetricName name,
Timer timer,
long timestamp) |
Map<MetricLevel,Map<Long,List<MetricObject>>> |
getMetrics() |
void |
setAdvancedMetricsReport(boolean enable) |
void |
setLastTimestamp(Map<MetricLevel,Long> lastTimestamp) |
addMetric, addMetric, addMetric, addMetric, addMetric, build, clear, setMetricsCollectPeriodConfigpublic void collect(MetricName name, Counter counter, long timestamp)
public void collect(MetricName name, Gauge gauge, long timestamp)
public void collect(MetricName name, Meter meter, long timestamp)
public void collect(MetricName name, Histogram histogram, long timestamp)
public void collect(MetricName name, Timer timer, long timestamp)
public void collect(MetricName name, Compass compass, long timestamp)
public void collect(MetricName name, FastCompass fastCompass, long timestamp)
collect 在接口中 Collectorcollect 在类中 MetricsCollectorpublic void collect(MetricName name, ClusterHistogram clusterHistogram, long timestamp)
collect 在接口中 Collectorcollect 在类中 MetricsCollectorpublic MetricsCollector addMetric(MetricName name, String suffix, Object value, long timestamp, MetricObject.MetricType type, String meterName)
public MetricsCollector addMetric(MetricObject object)
addMetric 在类中 MetricsCollectorpublic Map<MetricLevel,Map<Long,List<MetricObject>>> getMetrics()
public void setLastTimestamp(Map<MetricLevel,Long> lastTimestamp)
public long adjustStartTime(long startTime,
long endTime,
int interval,
MetricLevel level)
public void setAdvancedMetricsReport(boolean enable)
Copyright © 2019. All rights reserved.