public class DataNodeMetricHelper extends Object
Constructor and Description |
---|
DataNodeMetricHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
org.apache.hadoop.hdfs.server.datanode.metrics.FSDatasetMBean beanClass,
String context)
Get metrics helper provides Helper function for
metrics2 interface to act as a Metric source
|
public static void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, org.apache.hadoop.hdfs.server.datanode.metrics.FSDatasetMBean beanClass, String context) throws IOException
collector
- Metrics Collector that is passed inbeanClass
- The Class that currently impliments the metric functionscontext
- A string that idenitifies the contextIOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.