Class DataNodeMetricHelper

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

public class DataNodeMetricHelper extends Object
  • 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