Enum WorkerHealth
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<WorkerHealth>
Current health status of a worker.Protobuf enum
tensorflow.WorkerHealth-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionINTERNAL_ERROR = 2;By default a worker is healthy.RECEIVED_SHUTDOWN_SIGNAL = 1;Worker has been instructed to shutdown after a timeout. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intINTERNAL_ERROR = 2;static final intBy default a worker is healthy.static final intRECEIVED_SHUTDOWN_SIGNAL = 1;static final intWorker has been instructed to shutdown after a timeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerHealthforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic Internal.EnumLiteMap<WorkerHealth> static WorkerHealthvalueOf(int value) Deprecated.static WorkerHealthReturns the enum constant of this type with the specified name.static WorkerHealthReturns 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.
-
Enum Constant Details
-
OK
By default a worker is healthy.
OK = 0; -
RECEIVED_SHUTDOWN_SIGNAL
RECEIVED_SHUTDOWN_SIGNAL = 1; -
INTERNAL_ERROR
INTERNAL_ERROR = 2; -
SHUTTING_DOWN
Worker has been instructed to shutdown after a timeout.
SHUTTING_DOWN = 3; -
UNRECOGNIZED
-
-
Field Details
-
OK_VALUE
public static final int OK_VALUEBy default a worker is healthy.
OK = 0;- See Also:
-
RECEIVED_SHUTDOWN_SIGNAL_VALUE
public static final int RECEIVED_SHUTDOWN_SIGNAL_VALUERECEIVED_SHUTDOWN_SIGNAL = 1;- See Also:
-
INTERNAL_ERROR_VALUE
public static final int INTERNAL_ERROR_VALUEINTERNAL_ERROR = 2;- See Also:
-
SHUTTING_DOWN_VALUE
public static final int SHUTTING_DOWN_VALUEWorker has been instructed to shutdown after a timeout.
SHUTTING_DOWN = 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
-