DataNodeMetricHelper (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode.metrics, class: DataNodeMetricHelper

Package org.apache.hadoop.hdfs.server.datanode.metrics

# Class DataNodeMetricHelper

java.lang.Object
org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeMetricHelper

public class DataNodeMetricHelper extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DataNodeMetricHelper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `getMetrics(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

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 in
      `beanClass` - The Class that currently impliments the metric functions
      `context` - A string that idenitifies the context
    Throws:
      `IOException`