Class RouterMetricsService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.hdfs.server.federation.router.RouterMetricsService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class RouterMetricsService
extends org.apache.hadoop.service.AbstractService
Service to manage the metrics of the Router.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.metrics2.source.JvmMetricsGet the JVM metrics for the Router.Get the Namenode metrics.Get the federation metrics.Get the metrics system for the Router Client.Get the metrics system for the Router.protected voidserviceInit(org.apache.hadoop.conf.Configuration configuration) protected voidprotected voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
RouterMetricsService
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getRouterMetrics
Get the metrics system for the Router.- Returns:
- Router metrics.
-
getRouterClientMetrics
Get the metrics system for the Router Client.- Returns:
- Router Client metrics.
-
getRBFMetrics
Get the federation metrics.- Returns:
- Federation metrics.
-
getNamenodeMetrics
Get the Namenode metrics.- Returns:
- Namenode metrics.
-
getJvmMetrics
public org.apache.hadoop.metrics2.source.JvmMetrics getJvmMetrics()Get the JVM metrics for the Router.- Returns:
- JVM metrics.
-