Class Worker
java.lang.Object
co.yellowdog.platform.model.Worker
- All Implemented Interfaces:
Identified, Serializable
Describes a Worker managed by the YellowDog Scheduler service.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Worker.Builderbuilder()protected booleanbooleangetId()Returns the IDThe time at which the worker was registered.The status of the worker.The ID of the task group that has a claim on the worker.inthashCode()voidvoidsetRegisteredTime(Instant registeredTime) The time at which the worker was registered.voidsetStatus(WorkerStatus status) The status of the worker.voidsetTaskGroupId(String taskGroupId) The ID of the task group that has a claim on the worker.toString()
-
Method Details
-
builder
-
getId
Description copied from interface:IdentifiedReturns the ID- Specified by:
getIdin interfaceIdentified- Returns:
- the ID
-
getStatus
-
getTaskGroupId
-
getRegisteredTime
The time at which the worker was registered.- Returns:
- the time at which the worker was registered
-
setId
-
setStatus
The status of the worker.- Parameters:
status- the status of the worker
-
setTaskGroupId
-
setRegisteredTime
The time at which the worker was registered.- Parameters:
registeredTime- the time at which the worker was registered
-
equals
-
canEqual
-
hashCode
-
toString
-