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.Builder
builder()
protected boolean
boolean
int
The count of workers within the worker pool that have been claimed by one or more task groups.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 withint
The count of nodes that have registered with the worker pool.int
The count of workers that have registered with the worker pool.The status of the worker pool.getType()
The type of the worker pool.int
The count of workers within the worker pool that are currently doing a task.int
hashCode()
boolean
Indicates if the worker pool is healthy.void
setClaimedWorkerCount
(int claimedWorkerCount) The count of workers within the worker pool that have been claimed by one or more task groups.void
setCreatedTime
(Instant createdTime) The date and time when the worker pool was first created.void
setHealthy
(boolean healthy) Indicates if the worker pool is healthy.void
void
The name used to uniquely identify the worker pool.void
setNamespace
(String namespace) The namespace that the worker pool is associated withvoid
setRegisteredNodeCount
(int registeredNodeCount) The count of nodes that have registered with the worker pool.void
setRegisteredWorkerCount
(int registeredWorkerCount) The count of workers that have registered with the worker pool.void
setStatus
(WorkerPoolStatus status) The status of the worker pool.void
The type of the worker pool.void
setWorkingWorkerCount
(int workingWorkerCount) The count of workers within the worker pool that are currently doing a task.toString()
-
Method Details
-
builder
-
getId
Description copied from interface:Identified
Returns the ID- Specified by:
getId
in 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 one or more task groups.- Returns:
- the count of workers within the worker pool that have been claimed by one or more task groups
-
getWorkingWorkerCount
public int getWorkingWorkerCount()The count of workers within the worker pool that are currently doing a task.- Returns:
- the count of workers within the worker pool that are currently doing a task
-
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
-
isHealthy
public boolean isHealthy()Indicates if the worker pool is healthy. If false then workers may be late or lost.- Returns:
- true, if the worker pool is healthy; otherwise, false
-
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 one or more task groups. -
setWorkingWorkerCount
public void setWorkingWorkerCount(int workingWorkerCount) The count of workers within the worker pool that are currently doing a task. -
setStatus
The status of the worker pool. -
setCreatedTime
The date and time when the worker pool was first created. -
setHealthy
public void setHealthy(boolean healthy) Indicates if the worker pool is healthy. If false then workers may be late or lost. -
equals
-
canEqual
-
hashCode
-
toString
-