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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description JobState
build()
Build an instance of the immutableJobState
.void
setKeepalive(double keepAlive)
void
setKeepalivehost(String keepalivehost)
void
setPower(Boolean power)
void
setReason(String reason)
void
setStartTime(double startTime)
void
setState(State state)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setState
- Parameters:
state
- The state of the job.
-
setPower
- 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
- Parameters:
reason
- The reason why the job was destroyed.
-
setKeepalivehost
- Parameters:
keepalivehost
- The host keeping the job alive.
-
build
Build an instance of the immutableJobState
.- Returns:
- The instance.
-