Enum WorkerPoolStatus
- All Implemented Interfaces:
Serializable
,Comparable<WorkerPoolStatus>
,java.lang.constant.Constable
Indicates the status of a worker pool
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe nodes in the worker pool are being identified and their node types are being set.The worker pool has no registered workers.The worker pool has registered workers but none are currently claimed.The worker pool has been started but no workers have yet registered.One or more workers are claimed.The worker pool is shutdown and any workers are instructed to shutdown.The worker pool is terminated and the associated compute requirement is terminated (provisioned worker pool) or all nodes have shutdown (configured worker pool). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true, if the status indicates the pool is currently available (i.e.boolean
Returns true, if the status indicates the pool has finished and will do no further work; otherwise, false.static WorkerPoolStatus
Returns the enum constant of this type with the specified name.static WorkerPoolStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING
The worker pool has been started but no workers have yet registered. -
CONFIGURING
The nodes in the worker pool are being identified and their node types are being set. -
EMPTY
The worker pool has no registered workers. -
IDLE
The worker pool has registered workers but none are currently claimed. -
RUNNING
One or more workers are claimed. -
SHUTDOWN
The worker pool is shutdown and any workers are instructed to shutdown. -
TERMINATED
The worker pool is terminated and the associated compute requirement is terminated (provisioned worker pool) or all nodes have shutdown (configured worker pool).
-
-
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
-
isAvailable
public boolean isAvailable()Returns true, if the status indicates the pool is currently available (i.e. workers can register, be claimed and do work); otherwise, false.- Returns:
- true, if the status indicates the pool is currently available; otherwise, false
-
isFinished
public boolean isFinished()Returns true, if the status indicates the pool has finished and will do no further work; otherwise, false.- Returns:
- true, if the status indicates the pool has finished and will do no further work; otherwise, false
-