Class JobState
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).-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobState.Builder
Builder forJobState
. -
Method Summary
Modifier and Type Method Description double
getKeepalive()
String
getKeepalivehost()
Boolean
getPower()
String
getReason()
double
getStartTime()
State
getState()
String
toString()
-
Method Details
-
getState
- Returns:
- the state of the job
-
getPower
- Returns:
- whether the job's boards are powered
-
getKeepalive
public double getKeepalive()- Returns:
- the keepalive interval, in seconds
-
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
- Returns:
- the host keeping the job alive
-
toString
-