code: public synchronized List<TaskStatus> getNonRunningTasks() {
      List<TaskStatus> result = new ArrayList<TaskStatus>(tasks.size());
      for(Map.Entry<TaskAttemptID, TaskInProgress> task: tasks.entrySet()) {
        if (!runningTasks.containsKey(task.getKey())) {
          result.add(task.getValue().getStatus());
        }
      }
      return result;
    }
docs: Get the list of stored tasks on this task tracker.
  @return