@ThriftEnum public enum NodeState extends Enum<NodeState>
| Enum Constant and Description |
|---|
ACTIVE |
INACTIVE |
SHUTTING_DOWN |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static NodeState |
valueOf(int value)
Recover NodeState from the ordinal.
|
static NodeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeState ACTIVE
public static final NodeState INACTIVE
public static final NodeState SHUTTING_DOWN
public static NodeState[] values()
for (NodeState c : NodeState.values()) System.out.println(c);
public static NodeState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static NodeState valueOf(int value)
@ThriftEnumValue public int getValue()
Copyright © 2012–2022. All rights reserved.