Class WorkerPoolSummary.Builder
java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkerPoolSummary.Builder
- Enclosing class:
WorkerPoolSummary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()claimedWorkerCount(int claimedWorkerCount) The count of workers within the worker pool that have been claimed by a task group.createdTime(Instant createdTime) The date and time when the worker pool was first created.healthy(boolean healthy) Indicates if the worker pool is healthy.The name used to uniquely identify the worker pool.The namespace that the worker pool is associated withprovisioningPriority(double provisioningPriority) The provisioning priority of a provisioned worker pool, which orders the worker pools to upscale for the same demand, highest first.registeredNodeCount(int registeredNodeCount) The count of nodes that have registered with the worker pool.registeredWorkerCount(int registeredWorkerCount) The count of workers that have registered with the worker pool.status(WorkerPoolStatus status) The status of the worker pool.statusChangedTime(Instant statusChangedTime) The date and time when the worker pool status was last updatedtoString()The type of the worker pool.workingWorkerCount(int workingWorkerCount) The count of workers within the worker pool that have status RUNNING.
-
Method Details
-
id
- Returns:
this.
-
name
The name used to uniquely identify the worker pool.- Returns:
this.
-
namespace
The namespace that the worker pool is associated with- Returns:
this.
-
type
-
registeredNodeCount
The count of nodes that have registered with the worker pool.- Returns:
this.
-
registeredWorkerCount
The count of workers that have registered with the worker pool.- Returns:
this.
-
claimedWorkerCount
The count of workers within the worker pool that have been claimed by a task group.- Returns:
this.
-
workingWorkerCount
The count of workers within the worker pool that have status RUNNING. These workers are claimed but may be idle.- Returns:
this.
-
status
The status of the worker pool.- Returns:
this.
-
createdTime
The date and time when the worker pool was first created.- Returns:
this.
-
statusChangedTime
The date and time when the worker pool status was last updated- Returns:
this.
-
healthy
Indicates if the worker pool is healthy. If false then workers may be late or lost, or a node's action queue may have failed.- Returns:
this.
-
provisioningPriority
The provisioning priority of a provisioned worker pool, which orders the worker pools to upscale for the same demand, highest first. Always 0 for a configured worker pool, which is not upscaled.- Returns:
this.
-
build
-
toString
-