code: private void listAllJobs() throws IOException {
      JobStatus[] jobs = getAllJobs();
      if (jobs == null)
        jobs = new JobStatus[0];
      System.out.printf("%d jobs submitted\n", jobs.length);
      System.out.printf("States are:\n\tRunning : 1\tSucceded : 2" +
      "\tFailed : 3\tPrep : 4\n");
      displayJobList(jobs);
    }
docs: Dump a list of all jobs submitted.
  @throws IOException