public ODocument status() {

    ODocument status = new ODocument();

    Collection<ODocument> jobs = new ArrayList<ODocument>();
    if (currentJob != null) {
      jobs.add(currentJob.status());
    }
    status.field("jobs", jobs);
    return status;
  }
public ODocument status ( ) { ODocument status = new ODocument ( ) ; Collection < ODocument > jobs = new ArrayList < ODocument > ( ) ; if ( currentJob != null ) { jobs . add ( currentJob . status ( ) ) ; } status . field ( "jobs" , jobs ) ; return status ; }
Status of the Running Jobs

@return ODocument