java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.JobState

@Immutable
public final class JobState
extends Object
A description of the state of a job, in terms of its state, whether its boards are powered, the advised keep-alive polling interval and the reason that the job died (if in the DESTROYED state).
  • Method Details

    • getState

      public State getState()
      Returns:
      the state of the job
    • getPower

      public Boolean getPower()
      Returns:
      whether the job's boards are powered
    • getKeepalive

      public double getKeepalive()
      Returns:
      the keepalive interval, in seconds
    • getReason

      public String getReason()
      Returns:
      the reason why the job was destroyed
    • getStartTime

      public double getStartTime()
      Returns:
      the time the job started, in seconds from the epoch
    • getKeepalivehost

      public String getKeepalivehost()
      Returns:
      the host keeping the job alive
    • toString

      public String toString()
      Overrides:
      toString in class Object