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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.metrics2.source.JvmMetrics
    Get 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 void
    serviceInit(org.apache.hadoop.conf.Configuration configuration)
     
    protected void
     
    protected void
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RouterMetricsService

      public RouterMetricsService(Router router)
  • Method Details

    • serviceInit

      protected void serviceInit(org.apache.hadoop.conf.Configuration configuration) throws Exception
      Overrides:
      serviceInit in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • serviceStart

      protected void serviceStart() throws Exception
      Overrides:
      serviceStart in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • serviceStop

      protected void serviceStop() throws Exception
      Overrides:
      serviceStop in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • getRouterMetrics

      public RouterMetrics getRouterMetrics()
      Get the metrics system for the Router.
      Returns:
      Router metrics.
    • getRouterClientMetrics

      public RouterClientMetrics getRouterClientMetrics()
      Get the metrics system for the Router Client.
      Returns:
      Router Client metrics.
    • getRBFMetrics

      public RBFMetrics getRBFMetrics()
      Get the federation metrics.
      Returns:
      Federation metrics.
    • getNamenodeMetrics

      public NamenodeBeanMetrics 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.