Class WorkerPoolSummary
java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkerPoolSummary
- All Implemented Interfaces:
Identified, Named, Serializable
Provides a summary of a WorkerPool including the ID that can be used to retrieve the full object.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerPoolSummary.Builderbuilder()protected booleanbooleanintThe count of workers within the worker pool that have been claimed by a task group.The date and time when the worker pool was first created.getId()Returns the IDgetName()The name used to uniquely identify the worker pool.The namespace that the worker pool is associated withdoubleThe provisioning priority of a provisioned worker pool, which orders the worker pools to upscale for the same demand, highest first.intThe count of nodes that have registered with the worker pool.intThe count of workers that have registered with the worker pool.The status of the worker pool.The date and time when the worker pool status was last updatedgetType()The type of the worker pool.intThe count of workers within the worker pool that have status RUNNING.inthashCode()booleanIndicates if the worker pool is healthy.voidsetClaimedWorkerCount(int claimedWorkerCount) The count of workers within the worker pool that have been claimed by a task group.voidsetCreatedTime(Instant createdTime) The date and time when the worker pool was first created.voidsetHealthy(boolean healthy) Indicates if the worker pool is healthy.voidvoidThe name used to uniquely identify the worker pool.voidsetNamespace(String namespace) The namespace that the worker pool is associated withvoidsetProvisioningPriority(double provisioningPriority) The provisioning priority of a provisioned worker pool, which orders the worker pools to upscale for the same demand, highest first.voidsetRegisteredNodeCount(int registeredNodeCount) The count of nodes that have registered with the worker pool.voidsetRegisteredWorkerCount(int registeredWorkerCount) The count of workers that have registered with the worker pool.voidsetStatus(WorkerPoolStatus status) The status of the worker pool.voidsetStatusChangedTime(Instant statusChangedTime) The date and time when the worker pool status was last updatedvoidThe type of the worker pool.voidsetWorkingWorkerCount(int workingWorkerCount) The count of workers within the worker pool that have status RUNNING.toString()
-
Method Details
-
builder
-
getId
Description copied from interface:IdentifiedReturns the ID- Specified by:
getIdin interfaceIdentified- Returns:
- the ID
-
getName
-
getNamespace
The namespace that the worker pool is associated with- Returns:
- the namespace
-
getType
The type of the worker pool. -
getRegisteredNodeCount
public int getRegisteredNodeCount()The count of nodes that have registered with the worker pool.- Returns:
- the count of nodes that have registered with the worker pool
-
getRegisteredWorkerCount
public int getRegisteredWorkerCount()The count of workers that have registered with the worker pool.- Returns:
- the count of workers that have registered with the worker pool
-
getClaimedWorkerCount
public int getClaimedWorkerCount()The count of workers within the worker pool that have been claimed by a task group.- Returns:
- the count of workers within the worker pool that have been claimed by a task group
-
getWorkingWorkerCount
public int getWorkingWorkerCount()The count of workers within the worker pool that have status RUNNING. These workers are claimed but may be idle.- Returns:
- the count of workers within the worker pool that have status RUNNING
-
getStatus
The status of the worker pool.- Returns:
- the status of the worker pool
-
getCreatedTime
The date and time when the worker pool was first created.- Returns:
- the date and time when the worker pool was first created
-
getStatusChangedTime
The date and time when the worker pool status was last updated- Returns:
- the date and time when the worker pool status was last updated
-
isHealthy
public boolean isHealthy()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:
- true, if the worker pool is healthy; otherwise, false
-
getProvisioningPriority
public double getProvisioningPriority()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:
- the provisioning priority of the worker pool
-
setId
-
setName
The name used to uniquely identify the worker pool. -
setNamespace
The namespace that the worker pool is associated with -
setType
The type of the worker pool. -
setRegisteredNodeCount
public void setRegisteredNodeCount(int registeredNodeCount) The count of nodes that have registered with the worker pool. -
setRegisteredWorkerCount
public void setRegisteredWorkerCount(int registeredWorkerCount) The count of workers that have registered with the worker pool. -
setClaimedWorkerCount
public void setClaimedWorkerCount(int claimedWorkerCount) The count of workers within the worker pool that have been claimed by a task group. -
setWorkingWorkerCount
public void setWorkingWorkerCount(int workingWorkerCount) The count of workers within the worker pool that have status RUNNING. These workers are claimed but may be idle. -
setStatus
The status of the worker pool. -
setCreatedTime
The date and time when the worker pool was first created. -
setStatusChangedTime
The date and time when the worker pool status was last updated -
setHealthy
public void setHealthy(boolean 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. -
setProvisioningPriority
public void setProvisioningPriority(double 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. -
equals
-
canEqual
-
hashCode
-
toString
-