Class JobState.Builder

java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.JobState.Builder
Enclosing class:
JobState

public static class JobState.Builder
extends Object
Builder for JobState.
  • Constructor Details

  • Method Details

    • setState

      public void setState​(State state)
      Parameters:
      state - The state of the job.
    • setPower

      public void setPower​(Boolean power)
      Parameters:
      power - whether the job's boards are powered.
    • setKeepalive

      public void setKeepalive​(double keepAlive)
      Parameters:
      keepAlive - The keepalive interval, in seconds.
    • setStartTime

      public void setStartTime​(double startTime)
      Parameters:
      startTime - The time the job started, in seconds from the epoch.
    • setReason

      public void setReason​(String reason)
      Parameters:
      reason - The reason why the job was destroyed.
    • setKeepalivehost

      public void setKeepalivehost​(String keepalivehost)
      Parameters:
      keepalivehost - The host keeping the job alive.
    • build

      public JobState build()
      Build an instance of the immutable JobState.
      Returns:
      The instance.