Class DataNodeMetricHelper
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeMetricHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, FSDatasetMBean beanClass, String context) Get metrics helper provides Helper function for metrics2 interface to act as a Metric source
-
Constructor Details
-
DataNodeMetricHelper
public DataNodeMetricHelper()
-
-
Method Details
-
getMetrics
public static void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, FSDatasetMBean beanClass, String context) throws IOException Get metrics helper provides Helper function for metrics2 interface to act as a Metric source- Parameters:
collector- Metrics Collector that is passed inbeanClass- The Class that currently impliments the metric functionscontext- A string that idenitifies the context- Throws:
IOException
-