java.io.Serializable, java.lang.Comparable<DatanodeStorage.State>public static enum DatanodeStorage.State extends java.lang.Enum<DatanodeStorage.State>
| Enum Constant | 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 | Description |
|---|---|---|
static DatanodeStorage.State |
valueOf(java.lang.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(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 nullCopyright © 2008–2025 Apache Software Foundation. All rights reserved.