Class Node
java.lang.Object
co.yellowdog.platform.model.Node
- All Implemented Interfaces:
Identified
,Serializable
Describes an instance within a worker pool.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.Builder
builder()
protected boolean
boolean
The status of the action queue for the node.The time when the node was deregistered.The details of the node.getId()
The ID of the node.The time when the node notified of preemption.The time when the node was registered.The status of this instance.The date and time when the status last changed.The ID of the worker pool containing the node.The workers on this instance.int
hashCode()
void
setActionQueueStatus
(NodeActionQueueStatus actionQueueStatus) The status of the action queue for the node.void
setAgentVersion
(String agentVersion) void
setDeregisteredTime
(Instant deregisteredTime) The time when the node was deregistered.void
setDetails
(NodeDetails details) The details of the node.void
The ID of the node.void
setPreemptionWarningTime
(Instant preemptionWarningTime) The time when the node notified of preemption.void
setRegisteredTime
(Instant registeredTime) The time when the node was registered.void
setStatus
(NodeStatus status) The status of this instance.void
setStatusChangedTime
(Instant statusChangedTime) The date and time when the status last changed.void
setWorkerPoolId
(String workerPoolId) The ID of the worker pool containing the node.void
setWorkers
(List<Worker> workers) The workers on this instance.toString()
-
Method Details
-
builder
-
getId
The ID of the node.- Specified by:
getId
in interfaceIdentified
- Returns:
- the ID of the node
-
getWorkerPoolId
The ID of the worker pool containing the node.- Returns:
- the ID of the worker pool
-
getDetails
-
getStatus
-
getStatusChangedTime
The date and time when the status last changed.- Returns:
- the date and time when the status last changed
-
getRegisteredTime
The time when the node was registered.- Returns:
- the time when the node was registered
-
getDeregisteredTime
The time when the node was deregistered.- Returns:
- the time when the node was deregistered
-
getPreemptionWarningTime
The time when the node notified of preemption.- Returns:
- the time when the node notified of preemption
-
getWorkers
-
getActionQueueStatus
The status of the action queue for the node.- Returns:
- the status of the action queue
-
getAgentVersion
-
setId
-
setWorkerPoolId
The ID of the worker pool containing the node.- Parameters:
workerPoolId
- the ID of the worker pool
-
setDetails
The details of the node.- Parameters:
details
- the details of the node
-
setStatus
The status of this instance.- Parameters:
status
- the status
-
setStatusChangedTime
The date and time when the status last changed.- Parameters:
statusChangedTime
- the date and time when the status last changed
-
setRegisteredTime
The time when the node was registered.- Parameters:
registeredTime
- the time when the node was registered
-
setDeregisteredTime
The time when the node was deregistered.- Parameters:
deregisteredTime
- the time when the node was deregistered
-
setPreemptionWarningTime
The time when the node notified of preemption.- Parameters:
preemptionWarningTime
- the time when the node notified of preemption
-
setWorkers
-
setActionQueueStatus
The status of the action queue for the node.- Parameters:
actionQueueStatus
- the status of the action queue
-
setAgentVersion
-
equals
-
canEqual
-
hashCode
-
toString
-