public static enum HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto extends Enum<HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto> implements com.google.protobuf.ProtocolMessageEnum
hadoop.hdfs.NamenodeRegistrationProto.NamenodeRoleProto| Enum Constant and Description |
|---|
BACKUP
BACKUP = 2; |
CHECKPOINT
CHECKPOINT = 3; |
NAMENODE
NAMENODE = 1; |
| Modifier and Type | Field and Description |
|---|---|
static int |
BACKUP_VALUE
BACKUP = 2; |
static int |
CHECKPOINT_VALUE
CHECKPOINT = 3; |
static int |
NAMENODE_VALUE
NAMENODE = 1; |
| 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<HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto> |
internalGetValueMap() |
static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto |
valueOf(int value) |
static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto NAMENODE
NAMENODE = 1;public static final HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto BACKUP
BACKUP = 2;public static final HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto CHECKPOINT
CHECKPOINT = 3;public static final int NAMENODE_VALUE
NAMENODE = 1;public static final int BACKUP_VALUE
BACKUP = 2;public static final int CHECKPOINT_VALUE
CHECKPOINT = 3;public static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto[] values()
for (HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto c : HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto.values()) System.out.println(c);
public static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HdfsProtos.NamenodeRegistrationProto.NamenodeRoleProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013 Apache Software Foundation. All rights reserved.