public enum WorkerState extends java.lang.Enum<WorkerState> implements com.google.protobuf.ProtocolMessageEnum
staros.WorkerState| Enum Constant and Description |
|---|
DOWN
worker running but heartbeat does not work
|
OFF
worker shutdown
|
ON
worker running
|
SHUTTING_DOWN
worker is in shutting down
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DOWN_VALUE
worker running but heartbeat does not work
|
static int |
OFF_VALUE
worker shutdown
|
static int |
ON_VALUE
worker running
|
static int |
SHUTTING_DOWN_VALUE
worker is in shutting down
|
| Modifier and Type | Method and Description |
|---|---|
static WorkerState |
forNumber(int value) |
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<WorkerState> |
internalGetValueMap() |
static WorkerState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static WorkerState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static WorkerState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorkerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkerState OFF
worker shutdown
OFF = 0;public static final WorkerState ON
worker running
ON = 1;public static final WorkerState DOWN
worker running but heartbeat does not work
DOWN = 2;public static final WorkerState SHUTTING_DOWN
worker is in shutting down
SHUTTING_DOWN = 3;public static final WorkerState UNRECOGNIZED
public static final int OFF_VALUE
worker shutdown
OFF = 0;public static final int ON_VALUE
worker running
ON = 1;public static final int DOWN_VALUE
worker running but heartbeat does not work
DOWN = 2;public static final int SHUTTING_DOWN_VALUE
worker is in shutting down
SHUTTING_DOWN = 3;public static WorkerState[] values()
for (WorkerState c : WorkerState.values()) System.out.println(c);
public static WorkerState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static WorkerState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static WorkerState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<WorkerState> 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 WorkerState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024. All rights reserved.