Enum Class BlockConstructionStage
java.lang.Object
java.lang.Enum<BlockConstructionStage>
org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage
- All Implemented Interfaces:
Serializable,Comparable<BlockConstructionStage>,Constable
Block Construction Stage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe enumerates are always listed as regular stage followed by the recovery stage. -
Method Summary
Modifier and TypeMethodDescriptionget the recovery stage of this stagestatic BlockConstructionStageReturns the enum constant of this class with the specified name.static BlockConstructionStage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIPELINE_SETUP_APPEND
The enumerates are always listed as regular stage followed by the recovery stage. Changing this order will make getRecoveryStage not working. -
PIPELINE_SETUP_APPEND_RECOVERY
-
DATA_STREAMING
-
PIPELINE_SETUP_STREAMING_RECOVERY
-
PIPELINE_CLOSE
-
PIPELINE_CLOSE_RECOVERY
-
PIPELINE_SETUP_CREATE
-
TRANSFER_RBW
-
TRANSFER_FINALIZED
-
-
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
-
getRecoveryStage
get the recovery stage of this stage
-