Package net.sf.basedb.opengrid.engine
Class SlurmEngine.SqueueCmd
- Enclosing class:
SlurmEngine
Implements the 'squeue' command for getting information about a waiting
or running job.
We need to use '-o %all' to get output with '|' as separator. It is not
possible to specify only the columns that we need.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.basedb.opengrid.CmdResult
CmdResult.DateResult, CmdResult.StdioResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate final JobIdentifier
private final SlurmEngine.PendingJobsCmd
private final int
-
Constructor Summary
ConstructorDescriptionSqueueCmd
(JobIdentifier jobId, int timeAdjustment, SlurmEngine.PendingJobsCmd pendingJobs) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is called after the command has been executed and the exit code, stdout and stderr has been updated.Methods inherited from class net.sf.basedb.opengrid.CmdResult
asJSONObject, getCmd, getException, getExitStatus, getHardTimeout, getResult, getStderr, getStdout, setException, setExitStatus, setResult, setStderr, setStdout, throwExceptionIfNonZeroExitStatus, toString
-
Field Details
-
jobId
-
timeAdjustment
private final int timeAdjustment -
pendingJobs
-
-
Constructor Details
-
SqueueCmd
-
-
Method Details
-
parseResult
protected void parseResult()Description copied from class:CmdResult
This method is called after the command has been executed and the exit code, stdout and stderr has been updated. Subclasses can override this method to take actions. The default implementation does nothing.- Overrides:
parseResult
in classCmdResult<JobStatus>
-