Package org.apache.hadoop.ozone.om.ha
Class OMHAMetrics
java.lang.Object
org.apache.hadoop.ozone.om.ha.OMHAMetrics
- All Implemented Interfaces:
org.apache.hadoop.metrics2.MetricsSource
@Metrics(about="OzoneManager HA Metrics",
context="ozone")
public final class OMHAMetrics
extends Object
implements org.apache.hadoop.metrics2.MetricsSource
Class to maintain metrics and info related to OM HA.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OMHAMetricsCreate and return OMHAMetrics instance.voidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all) intstatic voidUnregister the metrics instance.
-
Field Details
-
SOURCE_NAME
-
-
Method Details
-
create
Create and return OMHAMetrics instance.- Returns:
- OMHAMetrics
-
unRegister
public static void unRegister()Unregister the metrics instance. -
getMetrics
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all) - Specified by:
getMetricsin interfaceorg.apache.hadoop.metrics2.MetricsSource
-
getOmhaInfoNodeId
-
getOmhaInfoOzoneManagerHALeaderState
public int getOmhaInfoOzoneManagerHALeaderState()
-