Class OpenGridEngine.OpenGridJobStatus

java.lang.Object
net.sf.basedb.opengrid.JobStatus
net.sf.basedb.opengrid.engine.OpenGridEngine.OpenGridJobStatus
Enclosing class:
OpenGridEngine

public static class OpenGridEngine.OpenGridJobStatus
extends JobStatus
Job status information for Open Grid jobs. We need the subclass to be able to parse and update the status via protected setter methods.
  • Constructor Details

    • OpenGridJobStatus

      public OpenGridJobStatus​(JobIdentifier jobId)
  • 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

      void readFromQacct​(String text, int timeAdjustment)
      Get information from output from 'qacct -j {job-id}'.