Enum Class BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus
java.lang.Object
java.lang.Enum<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus>
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus>,Constable
- Enclosing class:
- BuildEventStreamProtos.BuildMetrics.WorkerMetrics
public static enum BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus
extends Enum<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionALIVE = 1;KILLED_DUE_TO_INTERRUPTED_EXCEPTION = 4;KILLED_DUE_TO_IO_EXCEPTION = 5;KILLED_DUE_TO_MEMORY_PRESSURE = 2;KILLED_DUE_TO_USER_EXEC_EXCEPTION = 6;Indicates that the worker process was killed due to a reason unknown to Bazel at the point of measurement; if a known cause (below) comes along later on, this field will be updated.Used to indicate a worker instance where the process has not been created yet. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intALIVE = 1;static final intKILLED_DUE_TO_INTERRUPTED_EXCEPTION = 4;static final intKILLED_DUE_TO_IO_EXCEPTION = 5;static final intKILLED_DUE_TO_MEMORY_PRESSURE = 2;static final intKILLED_DUE_TO_USER_EXEC_EXCEPTION = 6;static final intIndicates that the worker process was killed due to a reason unknown to Bazel at the point of measurement; if a known cause (below) comes along later on, this field will be updated.static final intUsed to indicate a worker instance where the process has not been created yet. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
Used to indicate a worker instance where the process has not been created yet. In reality this isn't logged, but leaving this here as a possible option in the future.
NOT_STARTED = 0; -
ALIVE
ALIVE = 1; -
KILLED_DUE_TO_MEMORY_PRESSURE
public static final BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus KILLED_DUE_TO_MEMORY_PRESSUREKILLED_DUE_TO_MEMORY_PRESSURE = 2; -
KILLED_UNKNOWN
Indicates that the worker process was killed due to a reason unknown to Bazel at the point of measurement; if a known cause (below) comes along later on, this field will be updated.
KILLED_UNKNOWN = 3; -
KILLED_DUE_TO_INTERRUPTED_EXCEPTION
public static final BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus KILLED_DUE_TO_INTERRUPTED_EXCEPTIONKILLED_DUE_TO_INTERRUPTED_EXCEPTION = 4; -
KILLED_DUE_TO_IO_EXCEPTION
public static final BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus KILLED_DUE_TO_IO_EXCEPTIONKILLED_DUE_TO_IO_EXCEPTION = 5; -
KILLED_DUE_TO_USER_EXEC_EXCEPTION
public static final BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus KILLED_DUE_TO_USER_EXEC_EXCEPTIONKILLED_DUE_TO_USER_EXEC_EXCEPTION = 6; -
UNRECOGNIZED
-
-
Field Details
-
NOT_STARTED_VALUE
public static final int NOT_STARTED_VALUEUsed to indicate a worker instance where the process has not been created yet. In reality this isn't logged, but leaving this here as a possible option in the future.
NOT_STARTED = 0;- See Also:
-
ALIVE_VALUE
public static final int ALIVE_VALUEALIVE = 1;- See Also:
-
KILLED_DUE_TO_MEMORY_PRESSURE_VALUE
public static final int KILLED_DUE_TO_MEMORY_PRESSURE_VALUEKILLED_DUE_TO_MEMORY_PRESSURE = 2;- See Also:
-
KILLED_UNKNOWN_VALUE
public static final int KILLED_UNKNOWN_VALUEIndicates that the worker process was killed due to a reason unknown to Bazel at the point of measurement; if a known cause (below) comes along later on, this field will be updated.
KILLED_UNKNOWN = 3;- See Also:
-
KILLED_DUE_TO_INTERRUPTED_EXCEPTION_VALUE
public static final int KILLED_DUE_TO_INTERRUPTED_EXCEPTION_VALUEKILLED_DUE_TO_INTERRUPTED_EXCEPTION = 4;- See Also:
-
KILLED_DUE_TO_IO_EXCEPTION_VALUE
public static final int KILLED_DUE_TO_IO_EXCEPTION_VALUEKILLED_DUE_TO_IO_EXCEPTION = 5;- See Also:
-
KILLED_DUE_TO_USER_EXEC_EXCEPTION_VALUE
public static final int KILLED_DUE_TO_USER_EXEC_EXCEPTION_VALUEKILLED_DUE_TO_USER_EXEC_EXCEPTION = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus valueOf(int value) Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
public static com.google.protobuf.Internal.EnumLiteMap<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-