|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HAServiceProtocolProtos.HAServiceStateProto> org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceStateProto
public static enum HAServiceProtocolProtos.HAServiceStateProto
Protobuf enum hadoop.common.HAServiceStateProto
Enum Constant Summary | |
---|---|
ACTIVE
ACTIVE = 1; |
|
INITIALIZING
INITIALIZING = 0; |
|
STANDBY
STANDBY = 2; |
Field Summary | |
---|---|
static int |
ACTIVE_VALUE
ACTIVE = 1; |
static int |
INITIALIZING_VALUE
INITIALIZING = 0; |
static int |
STANDBY_VALUE
STANDBY = 2; |
Method Summary | |
---|---|
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<HAServiceProtocolProtos.HAServiceStateProto> |
internalGetValueMap()
|
static HAServiceProtocolProtos.HAServiceStateProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
|
static HAServiceProtocolProtos.HAServiceStateProto |
valueOf(int value)
|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HAServiceProtocolProtos.HAServiceStateProto INITIALIZING
INITIALIZING = 0;
public static final HAServiceProtocolProtos.HAServiceStateProto ACTIVE
ACTIVE = 1;
public static final HAServiceProtocolProtos.HAServiceStateProto STANDBY
STANDBY = 2;
Field Detail |
---|
public static final int INITIALIZING_VALUE
INITIALIZING = 0;
public static final int ACTIVE_VALUE
ACTIVE = 1;
public static final int STANDBY_VALUE
STANDBY = 2;
Method Detail |
---|
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 name
NullPointerException
- 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 HAServiceProtocolProtos.HAServiceStateProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HAServiceProtocolProtos.HAServiceStateProto> 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 HAServiceProtocolProtos.HAServiceStateProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |