FederationNamenodeServiceState (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.federation.resolver, enum: FederationNamenodeServiceState

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

# Enum Class FederationNamenodeServiceState

java.lang.Object
java.lang.Enum<FederationNamenodeServiceState>
org.apache.hadoop.hdfs.server.federation.resolver.FederationNamenodeServiceState

All Implemented Interfaces:
  `Serializable`, `Comparable<FederationNamenodeServiceState>`, `Constable`

public enum FederationNamenodeServiceState extends Enum<FederationNamenodeServiceState>
Namenode state in the federation. The order of this enum is used to evaluate NN priority for RPC calls.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `ACTIVE`
  `DISABLED`
  `EXPIRED`
  `OBSERVER`
  `STANDBY`
  `UNAVAILABLE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static FederationNamenodeServiceState`
  `getState(HAServiceProtocol.HAServiceState state)`
  `static FederationNamenodeServiceState`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static FederationNamenodeServiceState[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

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

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

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

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### ACTIVE

    public static final FederationNamenodeServiceState ACTIVE

  - ### OBSERVER

    public static final FederationNamenodeServiceState OBSERVER

  - ### STANDBY

    public static final FederationNamenodeServiceState STANDBY

  - ### UNAVAILABLE

    public static final FederationNamenodeServiceState UNAVAILABLE

  - ### EXPIRED

    public static final FederationNamenodeServiceState EXPIRED

  - ### DISABLED

    public static final FederationNamenodeServiceState DISABLED

- ## Method Details

  - ### values

    public static FederationNamenodeServiceState[] values()
    Returns an array containing the constants of this enum class, in the order they are declared.
    Returns:
      an array containing the constants of this enum class, in the order they are declared

  - ### valueOf

    public static FederationNamenodeServiceState valueOf(String name)
    Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
    Parameters:
      `name` - the name of the enum constant to be returned.
    Returns:
      the enum constant with the specified name
    Throws:
      `IllegalArgumentException` - if this enum class has no constant with the specified name
      `NullPointerException` - if the argument is null

  - ### getState

    public static FederationNamenodeServiceState getState(HAServiceProtocol.HAServiceState state)