org.apache.hadoop.hdfs.protocol
Enum DataTransferProtocol.BlockConstructionStage

java.lang.Object
  extended by java.lang.Enum<DataTransferProtocol.BlockConstructionStage>
      extended by 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>


Enum Constant Summary
DATA_STREAMING
           
PIPELINE_CLOSE
           
PIPELINE_CLOSE_RECOVERY
           
PIPELINE_SETUP_APPEND
          The enumerates are always listed as regular stage followed by the recovery stage.
PIPELINE_SETUP_APPEND_RECOVERY
           
PIPELINE_SETUP_CREATE
           
PIPELINE_SETUP_STREAMING_RECOVERY
           
 
Method Summary
 DataTransferProtocol.BlockConstructionStage getRecoveryStage()
          get the recovery stage of this stage
static DataTransferProtocol.BlockConstructionStage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataTransferProtocol.BlockConstructionStage[] 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

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
Method Detail

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