|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HdfsServerConstants.ReplicaState>
org.apache.hadoop.hdfs.server.common.HdfsServerConstants.ReplicaState
public static enum HdfsServerConstants.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 HdfsServerConstants.ReplicaState |
getState(int v)
|
int |
getValue()
|
static HdfsServerConstants.ReplicaState |
read(DataInput in)
Read from in |
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 |
| 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 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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic int getValue()
public static HdfsServerConstants.ReplicaState getState(int v)
public static HdfsServerConstants.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 | |||||||||