public static enum HdfsServerConstants.ReplicaState extends Enum<HdfsServerConstants.ReplicaState>
| Enum Constant and Description |
|---|
FINALIZED
Replica is finalized.
|
RBW
Replica is being written to.
|
RUR
Replica is under recovery.
|
RWR
Replica is waiting to be recovered.
|
TEMPORARY
Temporary replica: created for replication and relocation only.
|
| Modifier and Type | Method and Description |
|---|---|
static HdfsServerConstants.ReplicaState |
getState(int v)
Retrieve ReplicaState corresponding to given index.
|
int |
getValue() |
static HdfsServerConstants.ReplicaState |
read(DataInput in)
Retrieve ReplicaState corresponding to index provided in binary stream.
|
static HdfsServerConstants.ReplicaState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsServerConstants.ReplicaState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(DataOutput out)
Write to out
|
public static final HdfsServerConstants.ReplicaState FINALIZED
public static final HdfsServerConstants.ReplicaState RBW
public static final HdfsServerConstants.ReplicaState RWR
public static final HdfsServerConstants.ReplicaState RUR
public static final HdfsServerConstants.ReplicaState TEMPORARY
public static HdfsServerConstants.ReplicaState[] values()
for (HdfsServerConstants.ReplicaState c : HdfsServerConstants.ReplicaState.values()) System.out.println(c);
public static HdfsServerConstants.ReplicaState 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 int getValue()
public static HdfsServerConstants.ReplicaState getState(int v)
v - Index to retrieve HdfsServerConstants.ReplicaState.HdfsServerConstants.ReplicaState object.IndexOutOfBoundsException - if the index is invalid.public static HdfsServerConstants.ReplicaState read(DataInput in) throws IOException
in - Index value provided as bytes in given binary stream.HdfsServerConstants.ReplicaState object.IOException - if an I/O error occurs while reading bytes.IndexOutOfBoundsException - if the index is invalid.public void write(DataOutput out) throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.