public void addChild(String jobid) throws IOException {
    String jobids = "";
    try {
      jobids = getField("children");
    } catch (Exception e) {
      // There are none or they're not readable.
    }
    if (jobids==null) {
      jobids = "";
    }
    if (!jobids.equals("")) {
      jobids += ",";
    }
    jobids += jobid;
    setField("children", jobids);
  }
Add a jobid to the list of children of this job.

@param jobid
@throws IOException
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java