org.apache.hadoop.hdfs.protocol
Enum DataTransferProtocol.BlockConstructionStage
java.lang.Object
java.lang.Enum<DataTransferProtocol.BlockConstructionStage>
org.apache.hadoop.hdfs.protocol.DataTransferProtocol.BlockConstructionStage
- All Implemented Interfaces:
- Serializable, Comparable<DataTransferProtocol.BlockConstructionStage>
- Enclosing interface:
- DataTransferProtocol
public static enum DataTransferProtocol.BlockConstructionStage
- extends Enum<DataTransferProtocol.BlockConstructionStage>
PIPELINE_SETUP_APPEND
public static final DataTransferProtocol.BlockConstructionStage 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
public static final DataTransferProtocol.BlockConstructionStage PIPELINE_SETUP_APPEND_RECOVERY
DATA_STREAMING
public static final DataTransferProtocol.BlockConstructionStage DATA_STREAMING
PIPELINE_SETUP_STREAMING_RECOVERY
public static final DataTransferProtocol.BlockConstructionStage PIPELINE_SETUP_STREAMING_RECOVERY
PIPELINE_CLOSE
public static final DataTransferProtocol.BlockConstructionStage PIPELINE_CLOSE
PIPELINE_CLOSE_RECOVERY
public static final DataTransferProtocol.BlockConstructionStage PIPELINE_CLOSE_RECOVERY
PIPELINE_SETUP_CREATE
public static final DataTransferProtocol.BlockConstructionStage PIPELINE_SETUP_CREATE
values
public static DataTransferProtocol.BlockConstructionStage[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DataTransferProtocol.BlockConstructionStage c : DataTransferProtocol.BlockConstructionStage.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DataTransferProtocol.BlockConstructionStage valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null
getRecoveryStage
public DataTransferProtocol.BlockConstructionStage getRecoveryStage()
- get the recovery stage of this stage
Copyright © 2009 The Apache Software Foundation