code: private void displayQueueInfo(String queue, boolean showJobs) throws IOException {
      JobQueueInfo schedInfo = jc.getQueueInfo(queue);
      if (schedInfo == null) {
        System.out.printf("Queue Name : %s has no scheduling information \n", queue);
      } else {
        System.out.printf("Queue Name : %s \n", schedInfo.getQueueName());
        System.out.printf("Scheduling Info : %s \n",schedInfo.getSchedulingInfo());
      }
      if (showJobs) {
        System.out.printf("Job List\n");
        JobStatus[] jobs = jc.getJobsFromQueue(queue);
        if (jobs == null)
          jobs = new JobStatus[0];
        jc.displayJobList(jobs);
      }
    }
docs: Method used to display information pertaining to a Single JobQueue
  registered with the {@link QueueManager}. Display of the Jobs is
  determine by the boolean
  
  @throws IOException