isEmpty = false;
pw.printf("Active JobQueue: %s %s%n", q.getName(),
q.isSuspended() ? "(SUSPENDED)" : "");
s = q.getStatistics();
final QueueConfiguration c = q.getConfiguration();
pw.println("Statistics");
pw.printf("Start Time : %s%n", formatDate(s.getStartTime()));
pw.printf("Last Activated : %s%n", formatDate(s.getLastActivatedJobTime()));
pw.printf("Last Finished : %s%n", formatDate(s.getLastFinishedJobTime()));
pw.printf("Queued Jobs : %s%n", s.getNumberOfQueuedJobs());
pw.printf("Active Jobs : %s%n", s.getNumberOfActiveJobs());
pw.printf("Jobs : %s%n", s.getNumberOfJobs());
pw.printf("Finished Jobs : %s%n", s.getNumberOfFinishedJobs());
pw.printf("Failed Jobs : %s%n", s.getNumberOfFailedJobs());
pw.printf("Cancelled Jobs : %s%n", s.getNumberOfCancelledJobs());
pw.printf("Processed Jobs : %s%n", s.getNumberOfProcessedJobs());
pw.printf("Average Processing Time : %s%n", formatTime(s.getAverageProcessingTime()));
pw.printf("Average Waiting Time : %s%n", formatTime(s.getAverageWaitingTime()));
pw.printf("Status Info : %s%n", q.getStateInfo());
pw.println("Configuration");
pw.printf("Type : %s%n", formatType(c.getType()));
pw.printf("Topics : %s%n", formatArrayAsText(c.getTopics()));
pw.printf("Max Parallel : %s%n", c.getMaxParallel());
pw.printf("Max Retries : %s%n", c.getMaxRetries());
pw.printf("Retry Delay : %s ms%n", c.getRetryDelayInMs());
pw.printf("Priority : %s%n", c.getThreadPriority());
pw.println();
}
if ( isEmpty ) {
pw.println("No active queues.");
pw.println();