code: synchronized List<TaskStatus> getRunningTaskStatuses() {
      List<TaskStatus> result = new ArrayList<TaskStatus>(runningTasks.size());
      for(TaskInProgress tip: runningTasks.values()) {
        result.add(tip.getStatus());
      }
      return result;
    }
docs: Get the list of tasks that will be reported back to the
  job tracker in the next heartbeat cycle.
  @return a copy of the list of TaskStatus objects