code: public synchronized Collection<String> getPoolNames() {
      List<String> list = new ArrayList<String>();
      for (Pool pool: getPools()) {
        list.add(pool.getName());
      }
      Collections.sort(list);
      return list;
    }
docs: Get all pool names that have been seen either in the allocation file or in
  a MapReduce job.