Package net.sf.basedb.opengrid.engine
Class OpenGridEngine.OpenGridJobStatus
java.lang.Object
net.sf.basedb.opengrid.JobStatus
net.sf.basedb.opengrid.engine.OpenGridEngine.OpenGridJobStatus
- Enclosing class:
OpenGridEngine
Job status information for Open Grid jobs. We need the subclass to
be able to parse and update the status via protected setter methods.
-
Field Summary
Fields inherited from class net.sf.basedb.opengrid.JobStatus
QACCT_DATE, QSTAT_DATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
readFromQacct
(String text, int timeAdjustment) Get information from output from 'qacct -j {job-id}'.(package private) void
readFromQstatXml
(org.jdom2.Element e, int timeAdjustment) Get information from XML element generated by 'qstat -xml'.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
-
Constructor Details
-
OpenGridJobStatus
-
-
Method Details
-
readFromQstatXml
void readFromQstatXml(org.jdom2.Element e, int timeAdjustment) Get information from XML element generated by 'qstat -xml'. The qstat command is only able to give information about jobs that are waiting in the queue or execution (or has failed to start).- Parameters:
e
- The XML element containing information about a single job <job_list>timeAdjustment
- Number of seconds to adjust the time values in the XML data (used for getting the local time). A positive value will adjust the times into the future.
-
readFromQacct
Get information from output from 'qacct -j {job-id}'.
-