Package org.apache.hadoop.metrics2
Interface MetricsSource
@Public
@Evolving
public interface MetricsSource
The source of metrics information. It generates and updates metrics. It
registers with
MetricsSystem, which periodically polls it to collect
MetricsRecord and passes it to MetricsSink.-
Method Summary
Modifier and TypeMethodDescriptionvoidgetMetrics(MetricsCollector collector, boolean all) Get metrics from the metrics source
-
Method Details
-
getMetrics
Get metrics from the metrics source- Parameters:
collector- to contain the resulting metrics snapshotall- if true, return all metrics even if unchanged.
-