Enum Class DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode
java.lang.Object
java.lang.Enum<DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode>
org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode>,Constable,org.apache.hadoop.thirdparty.protobuf.Internal.EnumLite,org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
- Enclosing class:
- org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.ErrorReportRequestProto
public static enum DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode
extends Enum<DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode>
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
Protobuf enum
hadoop.hdfs.datanode.ErrorReportRequestProto.ErrorCode-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDN has disk errors but still has valid volumesNo valid volumes left on datanodeCommand from namenode has invalid block IDError report to be logged at the namenode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDN has disk errors but still has valid volumesstatic final intNo valid volumes left on datanodestatic final intCommand from namenode has invalid block IDstatic final intError report to be logged at the namenode -
Method Summary
Modifier and TypeMethodDescriptionforNumber(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<DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode>valueOf(int value) Deprecated.Returns the enum constant of this class with the specified name.valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTIFY
Error report to be logged at the namenode
NOTIFY = 0; -
DISK_ERROR
DN has disk errors but still has valid volumes
DISK_ERROR = 1; -
INVALID_BLOCK
Command from namenode has invalid block ID
INVALID_BLOCK = 2; -
FATAL_DISK_ERROR
No valid volumes left on datanode
FATAL_DISK_ERROR = 3;
-
-
Field Details
-
NOTIFY_VALUE
public static final int NOTIFY_VALUEError report to be logged at the namenode
NOTIFY = 0;- See Also:
-
DISK_ERROR_VALUE
public static final int DISK_ERROR_VALUEDN has disk errors but still has valid volumes
DISK_ERROR = 1;- See Also:
-
INVALID_BLOCK_VALUE
public static final int INVALID_BLOCK_VALUECommand from namenode has invalid block ID
INVALID_BLOCK = 2;- See Also:
-
FATAL_DISK_ERROR_VALUE
public static final int FATAL_DISK_ERROR_VALUENo valid volumes left on datanode
FATAL_DISK_ERROR = 3;- 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 public static DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode valueOf(int value) 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<DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode> 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 DatanodeProtocolProtos.ErrorReportRequestProto.ErrorCode 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
-