Class WorkerPoolSummary

java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkerPoolSummary
All Implemented Interfaces:
Identified, Named, Serializable

public class WorkerPoolSummary extends Object implements Identified, Named, Serializable
Provides a summary of a WorkerPool including the ID that can be used to retrieve the full object.
See Also:
  • Method Details

    • builder

      public static WorkerPoolSummary.Builder builder()
    • getId

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

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

      public String getNamespace()
      The namespace that the worker pool is associated with
      Returns:
      the namespace
    • getType

      public String getType()
      The type of the worker pool.
    • getRegisteredNodeCount

      public int getRegisteredNodeCount()
      The count of nodes that have registered with the worker pool.
      Returns:
      the count of nodes that have registered with the worker pool
    • getRegisteredWorkerCount

      public int getRegisteredWorkerCount()
      The count of workers that have registered with the worker pool.
      Returns:
      the count of workers that have registered with the worker pool
    • getClaimedWorkerCount

      public int getClaimedWorkerCount()
      The count of workers within the worker pool that have been claimed by one or more task groups.
      Returns:
      the count of workers within the worker pool that have been claimed by one or more task groups
    • getWorkingWorkerCount

      public int getWorkingWorkerCount()
      The count of workers within the worker pool that are currently doing a task.
      Returns:
      the count of workers within the worker pool that are currently doing a task
    • getStatus

      public WorkerPoolStatus getStatus()
      The status of the worker pool.
      Returns:
      the status of the worker pool
    • getCreatedTime

      public Instant getCreatedTime()
      The date and time when the worker pool was first created.
      Returns:
      the date and time when the worker pool was first created
    • isHealthy

      public boolean isHealthy()
      Indicates if the worker pool is healthy. If false then workers may be late or lost.
      Returns:
      true, if the worker pool is healthy; otherwise, false
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
      The name used to uniquely identify the worker pool.
    • setNamespace

      public void setNamespace(String namespace)
      The namespace that the worker pool is associated with
    • setType

      public void setType(String type)
      The type of the worker pool.
    • setRegisteredNodeCount

      public void setRegisteredNodeCount(int registeredNodeCount)
      The count of nodes that have registered with the worker pool.
    • setRegisteredWorkerCount

      public void setRegisteredWorkerCount(int registeredWorkerCount)
      The count of workers that have registered with the worker pool.
    • setClaimedWorkerCount

      public void setClaimedWorkerCount(int claimedWorkerCount)
      The count of workers within the worker pool that have been claimed by one or more task groups.
    • setWorkingWorkerCount

      public void setWorkingWorkerCount(int workingWorkerCount)
      The count of workers within the worker pool that are currently doing a task.
    • setStatus

      public void setStatus(WorkerPoolStatus status)
      The status of the worker pool.
    • setCreatedTime

      public void setCreatedTime(Instant createdTime)
      The date and time when the worker pool was first created.
    • setHealthy

      public void setHealthy(boolean healthy)
      Indicates if the worker pool is healthy. If false then workers may be late or lost.
    • 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