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
ConstructorsConstructorDescriptionStartupProgressMetrics(StartupProgress startupProgress) Creates a new StartupProgressMetrics registered with the metrics system. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all) static voidregister(StartupProgress prog) Registers StartupProgressMetrics linked to the given StartupProgress.
-
Constructor Details
-
StartupProgressMetrics
Creates a new StartupProgressMetrics registered with the metrics system.- Parameters:
startupProgress- StartupProgress to link
-
-
Method Details
-
register
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:
getMetricsin interfaceorg.apache.hadoop.metrics2.MetricsSource
-