Class WorkerSummary
java.lang.Object
co.yellowdog.platform.model.WorkerSummary
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorkerSummary
(Map<WorkerStatus, Long> statusCounts, int allWorkerClaimsCount, int claimedWorkerCount, Instant lastClaimedTime, Instant lastReleasedTime, Instant lastUpdatedTime) Creates a newWorkerSummary
instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerSummary.Builder
builder()
protected boolean
boolean
int
The number of claims across all workers in this worker pool.int
The number of workers that are claimed.The last time one of these workers was claimed.The last time one of these workers was released.The last time this summary was updated.The number of workers in each status.int
hashCode()
void
setAllWorkerClaimsCount
(int allWorkerClaimsCount) The number of claims across all workers in this worker pool.void
setClaimedWorkerCount
(int claimedWorkerCount) The number of workers that are claimed.void
setLastClaimedTime
(Instant lastClaimedTime) The last time one of these workers was claimed.void
setLastReleasedTime
(Instant lastReleasedTime) The last time one of these workers was released.void
setLastUpdatedTime
(Instant lastUpdatedTime) The last time this summary was updated.void
setStatusCounts
(Map<WorkerStatus, Long> statusCounts) The number of workers in each status.toString()
-
Constructor Details
-
WorkerSummary
public WorkerSummary() -
WorkerSummary
public WorkerSummary(Map<WorkerStatus, Long> statusCounts, int allWorkerClaimsCount, int claimedWorkerCount, Instant lastClaimedTime, Instant lastReleasedTime, Instant lastUpdatedTime) Creates a newWorkerSummary
instance.- Parameters:
statusCounts
- The number of workers in each status.allWorkerClaimsCount
- The number of claims across all workers in this worker pool.claimedWorkerCount
- The number of workers that are claimed.lastClaimedTime
- The last time one of these workers was claimed.lastReleasedTime
- The last time one of these workers was released.lastUpdatedTime
- The last time this summary was updated.
-
-
Method Details
-
builder
-
getStatusCounts
The number of workers in each status. -
getAllWorkerClaimsCount
public int getAllWorkerClaimsCount()The number of claims across all workers in this worker pool. -
getClaimedWorkerCount
public int getClaimedWorkerCount()The number of workers that are claimed. -
getLastClaimedTime
The last time one of these workers was claimed. -
getLastReleasedTime
The last time one of these workers was released. -
getLastUpdatedTime
The last time this summary was updated. -
setStatusCounts
The number of workers in each status. -
setAllWorkerClaimsCount
public void setAllWorkerClaimsCount(int allWorkerClaimsCount) The number of claims across all workers in this worker pool. -
setClaimedWorkerCount
public void setClaimedWorkerCount(int claimedWorkerCount) The number of workers that are claimed. -
setLastClaimedTime
The last time one of these workers was claimed. -
setLastReleasedTime
The last time one of these workers was released. -
setLastUpdatedTime
The last time this summary was updated. -
equals
-
canEqual
-
hashCode
-
toString
-