java.io.Serializable, java.lang.Comparable<FederationNamenodeServiceState>public enum FederationNamenodeServiceState extends java.lang.Enum<FederationNamenodeServiceState>
| Enum Constant | Description |
|---|---|
ACTIVE |
|
DISABLED |
|
EXPIRED |
|
OBSERVER |
|
STANDBY |
|
UNAVAILABLE |
| Modifier and Type | Method | Description |
|---|---|---|
static FederationNamenodeServiceState |
getState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state) |
|
static FederationNamenodeServiceState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static FederationNamenodeServiceState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FederationNamenodeServiceState ACTIVE
public static final FederationNamenodeServiceState OBSERVER
public static final FederationNamenodeServiceState STANDBY
public static final FederationNamenodeServiceState UNAVAILABLE
public static final FederationNamenodeServiceState EXPIRED
public static final FederationNamenodeServiceState DISABLED
public static FederationNamenodeServiceState[] values()
for (FederationNamenodeServiceState c : FederationNamenodeServiceState.values()) System.out.println(c);
public static FederationNamenodeServiceState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static FederationNamenodeServiceState getState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.