Class WorkerSummary.Builder
java.lang.Object
co.yellowdog.platform.model.WorkerSummary.Builder
-
Method Summary
Modifier and TypeMethodDescriptionallWorkerClaimsCount
(int allWorkerClaimsCount) The number of claims across all workers in this worker pool.build()
claimedWorkerCount
(int claimedWorkerCount) The number of workers that are claimed.lastClaimedTime
(Instant lastClaimedTime) The last time one of these workers was claimed.lastReleasedTime
(Instant lastReleasedTime) The last time one of these workers was released.lastUpdatedTime
(Instant lastUpdatedTime) The last time this summary was updated.statusCounts
(Map<WorkerStatus, Long> statusCounts) The number of workers in each status.toString()
-
Method Details
-
statusCounts
The number of workers in each status.- Returns:
this
.
-
allWorkerClaimsCount
The number of claims across all workers in this worker pool.- Returns:
this
.
-
claimedWorkerCount
The number of workers that are claimed.- Returns:
this
.
-
lastClaimedTime
The last time one of these workers was claimed.- Returns:
this
.
-
lastReleasedTime
The last time one of these workers was released.- Returns:
this
.
-
lastUpdatedTime
The last time this summary was updated.- Returns:
this
.
-
build
-
toString
-