Class WorkerPoolSummary.Builder

java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkerPoolSummary.Builder
Enclosing class:
WorkerPoolSummary

public static class WorkerPoolSummary.Builder extends Object
  • Method Details

    • id

      Returns:
      this.
    • name

      public WorkerPoolSummary.Builder name(String name)
      The name used to uniquely identify the worker pool.
      Returns:
      this.
    • namespace

      public WorkerPoolSummary.Builder namespace(String namespace)
      The namespace that the worker pool is associated with
      Returns:
      this.
    • type

      public WorkerPoolSummary.Builder type(String type)
      The type of the worker pool.
      Returns:
      this.
    • registeredNodeCount

      public WorkerPoolSummary.Builder registeredNodeCount(int registeredNodeCount)
      The count of nodes that have registered with the worker pool.
      Returns:
      this.
    • registeredWorkerCount

      public WorkerPoolSummary.Builder registeredWorkerCount(int registeredWorkerCount)
      The count of workers that have registered with the worker pool.
      Returns:
      this.
    • claimedWorkerCount

      public WorkerPoolSummary.Builder claimedWorkerCount(int claimedWorkerCount)
      The count of workers within the worker pool that have been claimed by a task group.
      Returns:
      this.
    • workingWorkerCount

      public WorkerPoolSummary.Builder workingWorkerCount(int workingWorkerCount)
      The count of workers within the worker pool that have status RUNNING. These workers are claimed but may be idle.
      Returns:
      this.
    • status

      The status of the worker pool.
      Returns:
      this.
    • createdTime

      public WorkerPoolSummary.Builder createdTime(Instant createdTime)
      The date and time when the worker pool was first created.
      Returns:
      this.
    • statusChangedTime

      public WorkerPoolSummary.Builder statusChangedTime(Instant statusChangedTime)
      The date and time when the worker pool status was last updated
      Returns:
      this.
    • healthy

      public WorkerPoolSummary.Builder healthy(boolean healthy)
      Indicates if the worker pool is healthy. If false then workers may be late or lost, or a node's action queue may have failed.
      Returns:
      this.
    • provisioningPriority

      public WorkerPoolSummary.Builder provisioningPriority(double provisioningPriority)
      The provisioning priority of a provisioned worker pool, which orders the worker pools to upscale for the same demand, highest first. Always 0 for a configured worker pool, which is not upscaled.
      Returns:
      this.
    • build

      public WorkerPoolSummary build()
    • toString

      public String toString()
      Overrides:
      toString in class Object