code: public synchronized void addJob(JobInProgress job) {
      String poolName = getPoolName(job);
      LOG.info("Adding job " + job.getJobID() + " to pool " + poolName +
               ", originally from pool " +
               job.getJobConf().get(EXPLICIT_POOL_PROPERTY));
      getPool(poolName).addJob(job);
    }
docs: Add a job in the appropriate pool