Class JobDescription
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.JobDescription
public final class JobDescription extends Object
A description of the state of a job.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobDescription.Builder
Builder forJobDescription
. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description List<Integer>
getArgs()
List<BoardCoordinates>
getBoards()
int
getJobID()
double
getKeepAlive()
String
getKeepAliveHost()
Map<String,Object>
getKwargs()
String
getMachine()
String
getOwner()
Boolean
getPower()
String
getReason()
Double
getStartTime()
State
getState()
String
toString()
-
Constructor Details
-
JobDescription
public JobDescription(int jobID, String owner, Double startTime, State state, Boolean power, double keepAlive, String reason, String machine, List<Integer> args, Map<String,Object> kwargs, List<BoardCoordinates> boards, String keepAliveHost)- Parameters:
jobID
- The job's identifierowner
- The job's owner. This is not necessarily validated!startTime
- When the job started, in seconds from the epoch.state
- The job state.power
- Whether the job's allocated boards are powered on.keepAlive
- The job's maximum keepalive interval, in seconds.reason
- The reason why the job terminated.machine
- The name of the machine that the job is allocated to.args
- The positional arguments used to create the job.kwargs
- The keyword arguments used to create the job.boards
- The boards allocated to the job and their locations.keepAliveHost
- The host believed to be keeping the job alive.
-
-
Method Details
-
getState
- Returns:
- The job state.
-
getPower
- Returns:
- Whether the job's allocated boards are powered on.
-
getKeepAlive
public double getKeepAlive()- Returns:
- The job's maximum keepalive interval, in seconds.
-
getReason
- Returns:
- The reason why the job terminated.
-
getJobID
public int getJobID()- Returns:
- The job's identifier.
-
getOwner
- Returns:
- The job's owner. This is not necessarily validated!
-
getStartTime
- Returns:
- When the job started, in seconds from the epoch.
-
getMachine
- Returns:
- The name of the machine that the job is allocated to.
-
getArgs
- Returns:
- The positional arguments used to create the job.
-
getKwargs
- Returns:
- The keyword arguments used to create the job.
-
getBoards
- Returns:
- The boards allocated to the job and their locations.
-
getKeepAliveHost
- Returns:
- The host believed to be keeping the job alive.
-
toString
-