StartupProgressMetrics (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.startupprogress, class: StartupProgressMetrics

Package org.apache.hadoop.hdfs.server.namenode.startupprogress

# Class StartupProgressMetrics

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgressMetrics

All Implemented Interfaces:
  `org.apache.hadoop.metrics2.MetricsSource`

@Private public class StartupProgressMetrics extends Object implements org.apache.hadoop.metrics2.MetricsSource
Links `StartupProgress` to a `MetricsSource` to expose its information via JMX.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StartupProgressMetrics(StartupProgress startupProgress)`
  Creates a new StartupProgressMetrics registered with the metrics system.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)`
  `static void`
  `register(StartupProgress prog)`
  Registers StartupProgressMetrics linked to the given StartupProgress.

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

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

- ## Constructor Details

  - ### StartupProgressMetrics

    public StartupProgressMetrics(StartupProgress startupProgress)
    Creates a new StartupProgressMetrics registered with the metrics system.
    Parameters:
      `startupProgress` - StartupProgress to link

- ## Method Details

  - ### register

    public static void register(StartupProgress prog)
    Registers StartupProgressMetrics linked to the given StartupProgress.
    Parameters:
      `prog` - StartupProgress to link

  - ### getMetrics

    public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
    Specified by:
      `getMetrics` in interface `org.apache.hadoop.metrics2.MetricsSource`