Enum Class DatanodeProtocolProtos.DatanodeCommandProto.Type
java.lang.Object
java.lang.Enum<DatanodeProtocolProtos.DatanodeCommandProto.Type>
org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto.Type
- All Implemented Interfaces:
Serializable,Comparable<DatanodeProtocolProtos.DatanodeCommandProto.Type>,Constable,org.apache.hadoop.thirdparty.protobuf.Internal.EnumLite,org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
- Enclosing class:
- org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.DatanodeCommandProto
public static enum DatanodeProtocolProtos.DatanodeCommandProto.Type
extends Enum<DatanodeProtocolProtos.DatanodeCommandProto.Type>
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
Protobuf enum
hadoop.hdfs.datanode.DatanodeCommandProto.Type-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBalancerBandwidthCommand = 0;BlockCommand = 1;BlockECReconstructionCommand = 9;BlockIdCommand = 8;BlockRecoveryCommand = 2;FinalizeCommand = 3;KeyUpdateCommand = 4;NullDatanodeCommand = 7;RegisterCommand = 5;UnusedUpgradeCommand = 6; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBalancerBandwidthCommand = 0;static final intBlockCommand = 1;static final intBlockECReconstructionCommand = 9;static final intBlockIdCommand = 8;static final intBlockRecoveryCommand = 2;static final intFinalizeCommand = 3;static final intKeyUpdateCommand = 4;static final intNullDatanodeCommand = 7;static final intRegisterCommand = 5;static final intUnusedUpgradeCommand = 6; -
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.DatanodeCommandProto.Type>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
-
BalancerBandwidthCommand
BalancerBandwidthCommand = 0; -
BlockCommand
BlockCommand = 1; -
BlockRecoveryCommand
BlockRecoveryCommand = 2; -
FinalizeCommand
FinalizeCommand = 3; -
KeyUpdateCommand
KeyUpdateCommand = 4; -
RegisterCommand
RegisterCommand = 5; -
UnusedUpgradeCommand
UnusedUpgradeCommand = 6; -
NullDatanodeCommand
NullDatanodeCommand = 7; -
BlockIdCommand
BlockIdCommand = 8; -
BlockECReconstructionCommand
BlockECReconstructionCommand = 9;
-
-
Field Details
-
BalancerBandwidthCommand_VALUE
public static final int BalancerBandwidthCommand_VALUEBalancerBandwidthCommand = 0;- See Also:
-
BlockCommand_VALUE
public static final int BlockCommand_VALUEBlockCommand = 1;- See Also:
-
BlockRecoveryCommand_VALUE
public static final int BlockRecoveryCommand_VALUEBlockRecoveryCommand = 2;- See Also:
-
FinalizeCommand_VALUE
public static final int FinalizeCommand_VALUEFinalizeCommand = 3;- See Also:
-
KeyUpdateCommand_VALUE
public static final int KeyUpdateCommand_VALUEKeyUpdateCommand = 4;- See Also:
-
RegisterCommand_VALUE
public static final int RegisterCommand_VALUERegisterCommand = 5;- See Also:
-
UnusedUpgradeCommand_VALUE
public static final int UnusedUpgradeCommand_VALUEUnusedUpgradeCommand = 6;- See Also:
-
NullDatanodeCommand_VALUE
public static final int NullDatanodeCommand_VALUENullDatanodeCommand = 7;- See Also:
-
BlockIdCommand_VALUE
public static final int BlockIdCommand_VALUEBlockIdCommand = 8;- See Also:
-
BlockECReconstructionCommand_VALUE
public static final int BlockECReconstructionCommand_VALUEBlockECReconstructionCommand = 9;- 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<DatanodeProtocolProtos.DatanodeCommandProto.Type> 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.DatanodeCommandProto.Type 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
-