Enum Class DataTransferProtos.Status
java.lang.Object
java.lang.Enum<DataTransferProtos.Status>
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.Status
- All Implemented Interfaces:
Serializable,Comparable<DataTransferProtos.Status>,Constable,org.apache.hadoop.thirdparty.protobuf.Internal.EnumLite,org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
- Enclosing class:
- org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos
public static enum DataTransferProtos.Status
extends Enum<DataTransferProtos.Status>
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
Status is a 4-bit enumProtobuf enum
hadoop.hdfs.Status-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCHECKSUM_OK = 6;ERROR = 1;ERROR_ACCESS_TOKEN = 5;ERROR_BLOCK_PINNED = 13;ERROR_CHECKSUM = 2;ERROR_EXISTS = 4;ERROR_INVALID = 3;ERROR_UNSUPPORTED = 7;IN_PROGRESS = 12;ReservedReservedReservedQuick restartSUCCESS = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCHECKSUM_OK = 6;static final intERROR_ACCESS_TOKEN = 5;static final intERROR_BLOCK_PINNED = 13;static final intERROR_CHECKSUM = 2;static final intERROR_EXISTS = 4;static final intERROR_INVALID = 3;static final intERROR_UNSUPPORTED = 7;static final intERROR = 1;static final intIN_PROGRESS = 12;static final intReservedstatic final intReservedstatic final intReservedstatic final intQuick restartstatic final intSUCCESS = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic DataTransferProtos.StatusforNumber(int value) static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptorfinal org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptorfinal intfinal org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptorstatic org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<DataTransferProtos.Status>static DataTransferProtos.StatusvalueOf(int value) Deprecated.static DataTransferProtos.StatusReturns the enum constant of this class with the specified name.static DataTransferProtos.StatusvalueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DataTransferProtos.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
SUCCESS = 0; -
ERROR
ERROR = 1; -
ERROR_CHECKSUM
ERROR_CHECKSUM = 2; -
ERROR_INVALID
ERROR_INVALID = 3; -
ERROR_EXISTS
ERROR_EXISTS = 4; -
ERROR_ACCESS_TOKEN
ERROR_ACCESS_TOKEN = 5; -
CHECKSUM_OK
CHECKSUM_OK = 6; -
ERROR_UNSUPPORTED
ERROR_UNSUPPORTED = 7; -
OOB_RESTART
Quick restart
OOB_RESTART = 8; -
OOB_RESERVED1
Reserved
OOB_RESERVED1 = 9; -
OOB_RESERVED2
Reserved
OOB_RESERVED2 = 10; -
OOB_RESERVED3
Reserved
OOB_RESERVED3 = 11; -
IN_PROGRESS
IN_PROGRESS = 12; -
ERROR_BLOCK_PINNED
ERROR_BLOCK_PINNED = 13;
-
-
Field Details
-
SUCCESS_VALUE
public static final int SUCCESS_VALUESUCCESS = 0;- See Also:
-
ERROR_VALUE
public static final int ERROR_VALUEERROR = 1;- See Also:
-
ERROR_CHECKSUM_VALUE
public static final int ERROR_CHECKSUM_VALUEERROR_CHECKSUM = 2;- See Also:
-
ERROR_INVALID_VALUE
public static final int ERROR_INVALID_VALUEERROR_INVALID = 3;- See Also:
-
ERROR_EXISTS_VALUE
public static final int ERROR_EXISTS_VALUEERROR_EXISTS = 4;- See Also:
-
ERROR_ACCESS_TOKEN_VALUE
public static final int ERROR_ACCESS_TOKEN_VALUEERROR_ACCESS_TOKEN = 5;- See Also:
-
CHECKSUM_OK_VALUE
public static final int CHECKSUM_OK_VALUECHECKSUM_OK = 6;- See Also:
-
ERROR_UNSUPPORTED_VALUE
public static final int ERROR_UNSUPPORTED_VALUEERROR_UNSUPPORTED = 7;- See Also:
-
OOB_RESTART_VALUE
public static final int OOB_RESTART_VALUEQuick restart
OOB_RESTART = 8;- See Also:
-
OOB_RESERVED1_VALUE
public static final int OOB_RESERVED1_VALUEReserved
OOB_RESERVED1 = 9;- See Also:
-
OOB_RESERVED2_VALUE
public static final int OOB_RESERVED2_VALUEReserved
OOB_RESERVED2 = 10;- See Also:
-
OOB_RESERVED3_VALUE
public static final int OOB_RESERVED3_VALUEReserved
OOB_RESERVED3 = 11;- See Also:
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUEIN_PROGRESS = 12;- See Also:
-
ERROR_BLOCK_PINNED_VALUE
public static final int ERROR_BLOCK_PINNED_VALUEERROR_BLOCK_PINNED = 13;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceorg.apache.hadoop.thirdparty.protobuf.Internal.EnumLite- Specified by:
getNumberin interfaceorg.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<DataTransferProtos.Status> internalGetValueMap() -
getValueDescriptor
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfaceorg.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static DataTransferProtos.Status valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc- 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
-