public static enum HAServiceProtocolProtos.HAServiceStateProto extends Enum<HAServiceProtocolProtos.HAServiceStateProto> implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
hadoop.common.HAServiceStateProto
Enum Constant and Description |
---|
ACTIVE
ACTIVE = 1; |
INITIALIZING
INITIALIZING = 0; |
OBSERVER
OBSERVER = 3; |
STANDBY
STANDBY = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_VALUE
ACTIVE = 1; |
static int |
INITIALIZING_VALUE
INITIALIZING = 0; |
static int |
OBSERVER_VALUE
OBSERVER = 3; |
static int |
STANDBY_VALUE
STANDBY = 2; |
Modifier and Type | Method and Description |
---|---|
static HAServiceProtocolProtos.HAServiceStateProto |
forNumber(int value) |
static org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<HAServiceProtocolProtos.HAServiceStateProto> |
internalGetValueMap() |
static HAServiceProtocolProtos.HAServiceStateProto |
valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc) |
static HAServiceProtocolProtos.HAServiceStateProto |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HAServiceProtocolProtos.HAServiceStateProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HAServiceProtocolProtos.HAServiceStateProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAServiceProtocolProtos.HAServiceStateProto INITIALIZING
INITIALIZING = 0;
public static final HAServiceProtocolProtos.HAServiceStateProto ACTIVE
ACTIVE = 1;
public static final HAServiceProtocolProtos.HAServiceStateProto STANDBY
STANDBY = 2;
public static final HAServiceProtocolProtos.HAServiceStateProto OBSERVER
OBSERVER = 3;
public static final int INITIALIZING_VALUE
INITIALIZING = 0;
public static final int ACTIVE_VALUE
ACTIVE = 1;
public static final int STANDBY_VALUE
STANDBY = 2;
public static final int OBSERVER_VALUE
OBSERVER = 3;
public static HAServiceProtocolProtos.HAServiceStateProto[] values()
for (HAServiceProtocolProtos.HAServiceStateProto c : HAServiceProtocolProtos.HAServiceStateProto.values()) System.out.println(c);
public static HAServiceProtocolProtos.HAServiceStateProto 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 org.apache.hadoop.thirdparty.protobuf.Internal.EnumLite
getNumber
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
@Deprecated public static HAServiceProtocolProtos.HAServiceStateProto valueOf(int value)
forNumber(int)
instead.public static HAServiceProtocolProtos.HAServiceStateProto forNumber(int value)
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<HAServiceProtocolProtos.HAServiceStateProto> internalGetValueMap()
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HAServiceProtocolProtos.HAServiceStateProto valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.