public enum WorkerShutdownMode extends Enum<WorkerShutdownMode> implements com.google.protobuf.ProtocolMessageEnum
Indicates the behavior of the worker when an internal error or shutdown signal is received.Protobuf enum
tensorflow.WorkerShutdownMode| Enum Constant and Description |
|---|
DEFAULT
DEFAULT = 0; |
SHUTDOWN_IMMEDIATELY
SHUTDOWN_IMMEDIATELY = 1; |
UNRECOGNIZED |
WAIT_FOR_COORDINATOR
WAIT_FOR_COORDINATOR = 2; |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VALUE
DEFAULT = 0; |
static int |
SHUTDOWN_IMMEDIATELY_VALUE
SHUTDOWN_IMMEDIATELY = 1; |
static int |
WAIT_FOR_COORDINATOR_VALUE
WAIT_FOR_COORDINATOR = 2; |
| Modifier and Type | Method and Description |
|---|---|
static WorkerShutdownMode |
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<WorkerShutdownMode> |
internalGetValueMap() |
static WorkerShutdownMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static WorkerShutdownMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static WorkerShutdownMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkerShutdownMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkerShutdownMode DEFAULT
DEFAULT = 0;public static final WorkerShutdownMode SHUTDOWN_IMMEDIATELY
SHUTDOWN_IMMEDIATELY = 1;public static final WorkerShutdownMode WAIT_FOR_COORDINATOR
WAIT_FOR_COORDINATOR = 2;public static final WorkerShutdownMode UNRECOGNIZED
public static final int DEFAULT_VALUE
DEFAULT = 0;public static final int SHUTDOWN_IMMEDIATELY_VALUE
SHUTDOWN_IMMEDIATELY = 1;public static final int WAIT_FOR_COORDINATOR_VALUE
WAIT_FOR_COORDINATOR = 2;public static WorkerShutdownMode[] values()
for (WorkerShutdownMode c : WorkerShutdownMode.values()) System.out.println(c);
public static WorkerShutdownMode 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 WorkerShutdownMode valueOf(int value)
forNumber(int) instead.public static WorkerShutdownMode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<WorkerShutdownMode> 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 WorkerShutdownMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2015–2019. All rights reserved.