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 contextIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.