Class ConfiguredWorkerPool

java.lang.Object
co.yellowdog.platform.model.ConfiguredWorkerPool
All Implemented Interfaces:
Identified, Named, WorkerPool, Serializable

public class ConfiguredWorkerPool extends Object implements WorkerPool
See Also:
  • Method Details

    • builder

      public static ConfiguredWorkerPool.Builder builder()
    • getId

      public String getId()
      Description copied from interface: Identified
      Returns the ID
      Specified by:
      getId in interface Identified
      Specified by:
      getId in interface WorkerPool
      Returns:
      the ID
    • getName

      public String getName()
      Description copied from interface: WorkerPool
      The name used to uniquely identify this worker pool.
      Specified by:
      getName in interface Named
      Specified by:
      getName in interface WorkerPool
      Returns:
      the worker pool name
    • getNamespace

      public String getNamespace()
      Description copied from interface: WorkerPool
      The namespace that this worker pool is constrained to.
      Specified by:
      getNamespace in interface WorkerPool
      Returns:
      the namespace that the worker pool is constrained to
    • getCreatedTime

      public Instant getCreatedTime()
      Description copied from interface: WorkerPool
      The date and time when the worker pool was created.
      Specified by:
      getCreatedTime in interface WorkerPool
      Returns:
      the date and time when the worker pool was created
    • getStatus

      public WorkerPoolStatus getStatus()
      Description copied from interface: WorkerPool
      The worker pool status.
      Specified by:
      getStatus in interface WorkerPool
      Returns:
      the worker pool status
    • getStatusChangedTime

      public Instant getStatusChangedTime()
      Description copied from interface: WorkerPool
      The date and time when the status last changed.
      Specified by:
      getStatusChangedTime in interface WorkerPool
      Returns:
      the date and time when the status last changed
    • getExpectedNodeCount

      public int getExpectedNodeCount()
      Description copied from interface: WorkerPool
      The expected number of nodes.
      Specified by:
      getExpectedNodeCount in interface WorkerPool
      Returns:
      the expected number of nodes
    • isAwaitingNodes

      public boolean isAwaitingNodes()
      Description copied from interface: WorkerPool
      Indicates if the worker pool is awaiting the registration of nodes.
      Specified by:
      isAwaitingNodes in interface WorkerPool
      Returns:
      true, if the worker pool is awaiting the registration of nodes; otherwise, false
    • getWorkerSummary

      public WorkerSummary getWorkerSummary()
      Description copied from interface: WorkerPool
      The summary of the workers in this worker pool.
      Specified by:
      getWorkerSummary in interface WorkerPool
      Returns:
      the summary of the workers
    • getNodeSummary

      public NodeSummary getNodeSummary()
      Description copied from interface: WorkerPool
      The summary of the nodes in this worker pool.
      Specified by:
      getNodeSummary in interface WorkerPool
      Returns:
      the summary of the nodes
    • getProperties

      public ConfiguredWorkerPoolProperties getProperties()
      Description copied from interface: WorkerPool
      The properties of this worker pool.
      Specified by:
      getProperties in interface WorkerPool
      Returns:
      the properties of this worker pool
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
    • setNamespace

      public void setNamespace(String namespace)
    • setCreatedTime

      public void setCreatedTime(Instant createdTime)
    • setStatus

      public void setStatus(WorkerPoolStatus status)
    • setStatusChangedTime

      public void setStatusChangedTime(Instant statusChangedTime)
    • setExpectedNodeCount

      public void setExpectedNodeCount(int expectedNodeCount)
    • setAwaitingNodes

      public void setAwaitingNodes(boolean awaitingNodes)
    • setWorkerSummary

      public void setWorkerSummary(WorkerSummary workerSummary)
    • setNodeSummary

      public void setNodeSummary(NodeSummary nodeSummary)
    • setProperties

      public void setProperties(ConfiguredWorkerPoolProperties properties)
    • 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