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 newWorkerSummaryinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerSummary.Builderbuilder()protected booleanbooleanintThe number of claims across all workers in this worker pool.intThe 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.inthashCode()voidsetAllWorkerClaimsCount(int allWorkerClaimsCount) The number of claims across all workers in this worker pool.voidsetClaimedWorkerCount(int claimedWorkerCount) The number of workers that are claimed.voidsetLastClaimedTime(Instant lastClaimedTime) The last time one of these workers was claimed.voidsetLastReleasedTime(Instant lastReleasedTime) The last time one of these workers was released.voidsetLastUpdatedTime(Instant lastUpdatedTime) The last time this summary was updated.voidsetStatusCounts(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 newWorkerSummaryinstance.- 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
-