|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HdfsServerConstants.BlockUCState>
org.apache.hadoop.hdfs.server.common.HdfsServerConstants.BlockUCState
public static enum HdfsServerConstants.BlockUCState
States, which a block can go through while it is under construction.
Enum Constant Summary | |
---|---|
COMMITTED
The block is committed. The client reported that all bytes are written to data-nodes with the given generation stamp and block length, but no HdfsServerConstants.ReplicaState.FINALIZED
replicas has yet been reported by data-nodes themselves. |
|
COMPLETE
Block construction completed. The block has at least one HdfsServerConstants.ReplicaState.FINALIZED replica,
and is not going to be modified. |
|
UNDER_CONSTRUCTION
The block is under construction. It has been recently allocated for write or append. |
|
UNDER_RECOVERY
The block is under recovery. When a file lease expires its last block may not be COMPLETE
and needs to go through a recovery procedure,
which synchronizes the existing replicas contents. |
Method Summary | |
---|---|
static HdfsServerConstants.BlockUCState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HdfsServerConstants.BlockUCState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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.BlockUCState COMPLETE
HdfsServerConstants.ReplicaState.FINALIZED
replica,
and is not going to be modified.
public static final HdfsServerConstants.BlockUCState UNDER_CONSTRUCTION
public static final HdfsServerConstants.BlockUCState UNDER_RECOVERY
COMPLETE
and needs to go through a recovery procedure,
which synchronizes the existing replicas contents.
public static final HdfsServerConstants.BlockUCState COMMITTED
HdfsServerConstants.ReplicaState.FINALIZED
replicas has yet been reported by data-nodes themselves.
Method Detail |
---|
public static HdfsServerConstants.BlockUCState[] values()
for (HdfsServerConstants.BlockUCState c : HdfsServerConstants.BlockUCState.values()) System.out.println(c);
public static HdfsServerConstants.BlockUCState 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |