Class Node

java.lang.Object
co.yellowdog.platform.model.Node
All Implemented Interfaces:
Identified, Serializable

public class Node extends Object implements Identified, Serializable
Describes an instance within a worker pool.
See Also:
  • Method Details

    • builder

      public static Node.Builder builder()
    • getId

      public String getId()
      The ID of the node.
      Specified by:
      getId in interface Identified
      Returns:
      the ID of the node
    • getWorkerPoolId

      public String getWorkerPoolId()
      The ID of the worker pool containing the node.
      Returns:
      the ID of the worker pool
    • getDetails

      public NodeDetails getDetails()
      The details of the node.
      Returns:
      the details of the node
    • getStatus

      public NodeStatus getStatus()
      The status of this instance.
      Returns:
      the status
    • getStatusChangedTime

      public Instant getStatusChangedTime()
      The date and time when the status last changed.
      Returns:
      the date and time when the status last changed
    • getRegisteredTime

      public Instant getRegisteredTime()
      The time when the node was registered.
      Returns:
      the time when the node was registered
    • getWorkers

      public List<Worker> getWorkers()
      The workers on this instance.
      Returns:
      the workers
    • getActionQueueStatus

      public NodeActionQueueStatus getActionQueueStatus()
      The status of the action queue for the node.
      Returns:
      the status of the action queue
    • getAgentVersion

      public String getAgentVersion()
    • setId

      public void setId(String id)
      The ID of the node.
      Parameters:
      id - the ID of the node
    • setWorkerPoolId

      public void setWorkerPoolId(String workerPoolId)
      The ID of the worker pool containing the node.
      Parameters:
      workerPoolId - the ID of the worker pool
    • setDetails

      public void setDetails(NodeDetails details)
      The details of the node.
      Parameters:
      details - the details of the node
    • setStatus

      public void setStatus(NodeStatus status)
      The status of this instance.
      Parameters:
      status - the status
    • setStatusChangedTime

      public void setStatusChangedTime(Instant statusChangedTime)
      The date and time when the status last changed.
      Parameters:
      statusChangedTime - the date and time when the status last changed
    • setRegisteredTime

      public void setRegisteredTime(Instant registeredTime)
      The time when the node was registered.
      Parameters:
      registeredTime - the time when the node was registered
    • setWorkers

      public void setWorkers(List<Worker> workers)
      The workers on this instance.
      Parameters:
      workers - the workers
    • setActionQueueStatus

      public void setActionQueueStatus(NodeActionQueueStatus actionQueueStatus)
      The status of the action queue for the node.
      Parameters:
      actionQueueStatus - the status of the action queue
    • setAgentVersion

      public void setAgentVersion(String agentVersion)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object