public enum WorkerHealth extends Enum<WorkerHealth> implements com.google.protobuf.ProtocolMessageEnum
Current health status of a worker.Protobuf enum
tensorflow.WorkerHealth| Enum Constant and Description |
|---|
INTERNAL_ERROR
INTERNAL_ERROR = 2; |
OK
By default a worker is healthy.
|
RECEIVED_SHUTDOWN_SIGNAL
RECEIVED_SHUTDOWN_SIGNAL = 1; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERNAL_ERROR_VALUE
INTERNAL_ERROR = 2; |
static int |
OK_VALUE
By default a worker is healthy.
|
static int |
RECEIVED_SHUTDOWN_SIGNAL_VALUE
RECEIVED_SHUTDOWN_SIGNAL = 1; |
| Modifier and Type | Method and Description |
|---|---|
static WorkerHealth |
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<WorkerHealth> |
internalGetValueMap() |
static WorkerHealth |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static WorkerHealth |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static WorkerHealth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkerHealth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkerHealth OK
By default a worker is healthy.
OK = 0;public static final WorkerHealth RECEIVED_SHUTDOWN_SIGNAL
RECEIVED_SHUTDOWN_SIGNAL = 1;public static final WorkerHealth INTERNAL_ERROR
INTERNAL_ERROR = 2;public static final WorkerHealth UNRECOGNIZED
public static final int OK_VALUE
By default a worker is healthy.
OK = 0;public static final int RECEIVED_SHUTDOWN_SIGNAL_VALUE
RECEIVED_SHUTDOWN_SIGNAL = 1;public static final int INTERNAL_ERROR_VALUE
INTERNAL_ERROR = 2;public static WorkerHealth[] values()
for (WorkerHealth c : WorkerHealth.values()) System.out.println(c);
public static WorkerHealth 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.ProtocolMessageEnum@Deprecated public static WorkerHealth valueOf(int value)
forNumber(int) instead.public static WorkerHealth forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<WorkerHealth> 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 WorkerHealth valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2015–2019. All rights reserved.