Enum Class HdfsServerConstants.BlockUCState
java.lang.Object
java.lang.Enum<HdfsServerConstants.BlockUCState>
org.apache.hadoop.hdfs.server.common.HdfsServerConstants.BlockUCState
- All Implemented Interfaces:
Serializable,Comparable<HdfsServerConstants.BlockUCState>,Constable
- Enclosing interface:
- org.apache.hadoop.hdfs.server.common.HdfsServerConstants
States, which a block can go through while it is under construction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe block is committed.
The client reported that all bytes are written to data-nodes with the given generation stamp and block length, but noHdfsServerConstants.ReplicaState.FINALIZEDreplicas has yet been reported by data-nodes themselves.Block construction completed.
The block has at least the configured minimal replication number ofHdfsServerConstants.ReplicaState.FINALIZEDreplica(s), and is not going to be modified.The block is under construction.
It has been recently allocated for write or append.The block is under recovery.
When a file lease expires its last block may not beCOMPLETEand needs to go through a recovery procedure, which synchronizes the existing replicas contents. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HdfsServerConstants.BlockUCState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPLETE
Block construction completed.
The block has at least the configured minimal replication number ofHdfsServerConstants.ReplicaState.FINALIZEDreplica(s), and is not going to be modified. NOTE, in some special cases, a block may be forced to COMPLETE state, even if it doesn't have required minimal replications. -
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 beCOMPLETEand needs to go through a recovery procedure, which synchronizes the existing replicas contents. -
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 noHdfsServerConstants.ReplicaState.FINALIZEDreplicas has yet been reported by data-nodes themselves.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-