Class JobState.Builder
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.JobState.Builder
- Enclosing class:
- JobState
Builder for
JobState.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build an instance of the immutableJobState.voidsetKeepalive(double keepAlive) voidsetKeepalivehost(String keepalivehost) voidvoidvoidsetStartTime(double startTime) void
-
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.
-