public static enum DatanodeProtocolProtos.DatanodeCommandProto.Type extends Enum<DatanodeProtocolProtos.DatanodeCommandProto.Type> implements com.google.protobuf.ProtocolMessageEnum
hadoop.hdfs.DatanodeCommandProto.Type
Enum Constant and Description |
---|
BalancerBandwidthCommand
BalancerBandwidthCommand = 0; |
BlockCommand
BlockCommand = 1; |
BlockRecoveryCommand
BlockRecoveryCommand = 2; |
FinalizeCommand
FinalizeCommand = 3; |
KeyUpdateCommand
KeyUpdateCommand = 4; |
NullDatanodeCommand
NullDatanodeCommand = 7; |
RegisterCommand
RegisterCommand = 5; |
UnusedUpgradeCommand
UnusedUpgradeCommand = 6; |
Modifier and Type | Field and Description |
---|---|
static int |
BalancerBandwidthCommand_VALUE
BalancerBandwidthCommand = 0; |
static int |
BlockCommand_VALUE
BlockCommand = 1; |
static int |
BlockRecoveryCommand_VALUE
BlockRecoveryCommand = 2; |
static int |
FinalizeCommand_VALUE
FinalizeCommand = 3; |
static int |
KeyUpdateCommand_VALUE
KeyUpdateCommand = 4; |
static int |
NullDatanodeCommand_VALUE
NullDatanodeCommand = 7; |
static int |
RegisterCommand_VALUE
RegisterCommand = 5; |
static int |
UnusedUpgradeCommand_VALUE
UnusedUpgradeCommand = 6; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DatanodeProtocolProtos.DatanodeCommandProto.Type> |
internalGetValueMap() |
static DatanodeProtocolProtos.DatanodeCommandProto.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DatanodeProtocolProtos.DatanodeCommandProto.Type |
valueOf(int value) |
static DatanodeProtocolProtos.DatanodeCommandProto.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatanodeProtocolProtos.DatanodeCommandProto.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type BalancerBandwidthCommand
BalancerBandwidthCommand = 0;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type BlockCommand
BlockCommand = 1;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type BlockRecoveryCommand
BlockRecoveryCommand = 2;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type FinalizeCommand
FinalizeCommand = 3;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type KeyUpdateCommand
KeyUpdateCommand = 4;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type RegisterCommand
RegisterCommand = 5;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type UnusedUpgradeCommand
UnusedUpgradeCommand = 6;
public static final DatanodeProtocolProtos.DatanodeCommandProto.Type NullDatanodeCommand
NullDatanodeCommand = 7;
public static final int BalancerBandwidthCommand_VALUE
BalancerBandwidthCommand = 0;
public static final int BlockCommand_VALUE
BlockCommand = 1;
public static final int BlockRecoveryCommand_VALUE
BlockRecoveryCommand = 2;
public static final int FinalizeCommand_VALUE
FinalizeCommand = 3;
public static final int KeyUpdateCommand_VALUE
KeyUpdateCommand = 4;
public static final int RegisterCommand_VALUE
RegisterCommand = 5;
public static final int UnusedUpgradeCommand_VALUE
UnusedUpgradeCommand = 6;
public static final int NullDatanodeCommand_VALUE
NullDatanodeCommand = 7;
public static DatanodeProtocolProtos.DatanodeCommandProto.Type[] values()
for (DatanodeProtocolProtos.DatanodeCommandProto.Type c : DatanodeProtocolProtos.DatanodeCommandProto.Type.values()) System.out.println(c);
public static DatanodeProtocolProtos.DatanodeCommandProto.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static DatanodeProtocolProtos.DatanodeCommandProto.Type valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<DatanodeProtocolProtos.DatanodeCommandProto.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DatanodeProtocolProtos.DatanodeCommandProto.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013 Apache Software Foundation. All rights reserved.