RouterMetrics (Apache Hadoop HDFS-RBF 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.federation.router, class: RouterMetrics

Package org.apache.hadoop.hdfs.server.federation.router

# Class RouterMetrics

java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RouterMetrics

@Metrics(name="RouterActivity", about="Router metrics", context="dfs") public class RouterMetrics extends Object
This class is for maintaining the various Router activity statistics and publishing them through the metrics interfaces.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static RouterMetrics`
  `create(org.apache.hadoop.conf.Configuration conf)`
  `org.apache.hadoop.metrics2.source.JvmMetrics`
  `getJvmMetrics()`
  `void`
  `setSafeModeTime(long elapsed)`
  `void`
  `shutdown()`

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

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

- ## Method Details

  - ### create

    public static RouterMetrics create(org.apache.hadoop.conf.Configuration conf)

  - ### getJvmMetrics

    public org.apache.hadoop.metrics2.source.JvmMetrics getJvmMetrics()

  - ### shutdown

    public void shutdown()

  - ### setSafeModeTime

    public void setSafeModeTime(long elapsed)