Enum WorkerShutdownMode
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<WorkerShutdownMode>
Indicates the behavior of the worker when an internal error or shutdown signal is received.Protobuf enum
tensorflow.WorkerShutdownMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEFAULT = 0;NOT_CONFIGURED = 1;SHUTDOWN_AFTER_TIMEOUT = 3;WAIT_FOR_COORDINATOR = 2; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDEFAULT = 0;static final intNOT_CONFIGURED = 1;static final intSHUTDOWN_AFTER_TIMEOUT = 3;static final intWAIT_FOR_COORDINATOR = 2; -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerShutdownModeforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic WorkerShutdownModevalueOf(int value) Deprecated.static WorkerShutdownModeReturns the enum constant of this type with the specified name.static WorkerShutdownModeReturns 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.
-
Enum Constant Details
-
DEFAULT
DEFAULT = 0; -
NOT_CONFIGURED
NOT_CONFIGURED = 1; -
WAIT_FOR_COORDINATOR
WAIT_FOR_COORDINATOR = 2; -
SHUTDOWN_AFTER_TIMEOUT
SHUTDOWN_AFTER_TIMEOUT = 3; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_VALUE
public static final int DEFAULT_VALUEDEFAULT = 0;- See Also:
-
NOT_CONFIGURED_VALUE
public static final int NOT_CONFIGURED_VALUENOT_CONFIGURED = 1;- See Also:
-
WAIT_FOR_COORDINATOR_VALUE
public static final int WAIT_FOR_COORDINATOR_VALUEWAIT_FOR_COORDINATOR = 2;- See Also:
-
SHUTDOWN_AFTER_TIMEOUT_VALUE
public static final int SHUTDOWN_AFTER_TIMEOUT_VALUESHUTDOWN_AFTER_TIMEOUT = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-