|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HdfsConstants.ReplicaState>
org.apache.hadoop.hdfs.server.common.HdfsConstants.ReplicaState
public static enum HdfsConstants.ReplicaState
Block replica states, which it can go through while being constructed.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static HdfsConstants.ReplicaState |
getState(int v)
|
int |
getValue()
|
static HdfsConstants.ReplicaState |
read(DataInput in)
Read from in |
static HdfsConstants.ReplicaState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HdfsConstants.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 |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HdfsConstants.ReplicaState FINALIZED
public static final HdfsConstants.ReplicaState RBW
public static final HdfsConstants.ReplicaState RWR
public static final HdfsConstants.ReplicaState RUR
public static final HdfsConstants.ReplicaState TEMPORARY
Method Detail |
---|
public static HdfsConstants.ReplicaState[] values()
for (HdfsConstants.ReplicaState c : HdfsConstants.ReplicaState.values()) System.out.println(c);
public static HdfsConstants.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 name
NullPointerException
- if the argument is nullpublic int getValue()
public static HdfsConstants.ReplicaState getState(int v)
public static HdfsConstants.ReplicaState read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |