public static enum DatanodeStorage.State extends Enum<DatanodeStorage.State>
| Enum Constant and Description |
|---|
FAILED |
NORMAL |
READ_ONLY_SHARED
A storage that represents a read-only path to replicas stored on a shared
storage device.
|
| Modifier and Type | Method and Description |
|---|---|
static DatanodeStorage.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatanodeStorage.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatanodeStorage.State NORMAL
public static final DatanodeStorage.State READ_ONLY_SHARED
READ_ONLY_SHARED storage are not
counted towards live replicas.
In certain implementations, a READ_ONLY_SHARED storage may be
correlated to its NORMAL counterpart using the
DatanodeStorage.storageID. This property should be used for
debugging purposes only.
public static final DatanodeStorage.State FAILED
public static DatanodeStorage.State[] values()
for (DatanodeStorage.State c : DatanodeStorage.State.values()) System.out.println(c);
public static DatanodeStorage.State 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 nullCopyright © 2018 Apache Software Foundation. All Rights Reserved.