Package net.sf.basedb.opengrid.engine
Class SlurmEngine.SlurmJobStatus
java.lang.Object
net.sf.basedb.opengrid.JobStatus
net.sf.basedb.opengrid.engine.SlurmEngine.SlurmJobStatus
- Enclosing class:
SlurmEngine
Job status information for Slurm jobs. We need the subclass to
be able to parse and update the status via protected setter methods.
-
Field Summary
Modifier and TypeFieldDescriptionThe output from 'squeue' and 'sacct' have *several* ways to indicate no information is available.static final DateFormatter
Slurm always (I hope) return dates in "yyyy-MM-ddTHH:mm:ss" format.Fields inherited from class net.sf.basedb.opengrid.JobStatus
QACCT_DATE, QSTAT_DATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
readFromSqueueAndSacct
(String text, int timeAdjustment, SlurmEngine.PendingJobsCmd pendingJobs) Parse the output from 'squeue -o %all -j{id}'.(package private) void
readFromStatusFile
(String text, int timeAdjustment) Parse information from the STATUS_FILE.Methods inherited from class net.sf.basedb.opengrid.JobStatus
getEndDate, getEndTime, getExitCode, getJobIdentifier, getMessage, getName, getNodeName, getProgress, getStartDate, getStartTime, getStatus, getSubmissionDate, getSubmissionTime, isAlive, setEndTime, setExitCode, setMessage, setName, setNodeName, setProgress, setStartTime, setStatus, setSubmissionTime, toString
-
Field Details
-
nullVariants
The output from 'squeue' and 'sacct' have *several* ways to indicate no information is available. We list all of them (that we know about) and convert the actual value to 'null' when parsing. -
SLURM_DATE
Slurm always (I hope) return dates in "yyyy-MM-ddTHH:mm:ss" format. Example: 2014-03-21T08:59:09
-
-
Constructor Details
-
SlurmJobStatus
-
-
Method Details
-
readFromSqueueAndSacct
void readFromSqueueAndSacct(String text, int timeAdjustment, SlurmEngine.PendingJobsCmd pendingJobs) Parse the output from 'squeue -o %all -j{id}'. -
readFromStatusFile
Parse information from the STATUS_FILE.
-