private QueueInfo[] getQueueInfoArray(JobQueueInfo[] queues) throws IOException { for (JobQueueInfo queue : queues) { queue.setJobStatuses(getJobsFromQueue(queue.getQueueName())); for(JobQueueInfo childqueue : queue.getChildren()){ childqueue.setJobStatuses(getJobsFromQueue(childqueue.getQueueName())); } } return queues; }
@Override public QueueInfo getQueue(String queue) throws IOException { JobQueueInfo jqueue = queueManager.getJobQueueInfo(queue); if (jqueue != null) { jqueue.setJobStatuses(getJobsFromQueue(jqueue.getQueueName())); } return jqueue; }
JobQueueInfo(QueueInfo queue) { this(queue.getQueueName(), queue.getSchedulingInfo()); setQueueState(queue.getState().getStateName()); setQueueChildren(queue.getQueueChildren()); setProperties(queue.getProperties()); setJobStatuses(queue.getJobStatuses()); }
JobQueueInfo(QueueInfo queue) { this(queue.getQueueName(), queue.getSchedulingInfo()); setQueueState(queue.getState().getStateName()); setQueueChildren(queue.getQueueChildren()); setProperties(queue.getProperties()); setJobStatuses(queue.getJobStatuses()); }
JobQueueInfo(QueueInfo queue) { this(queue.getQueueName(), queue.getSchedulingInfo()); setQueueState(queue.getState().getStateName()); setQueueChildren(queue.getQueueChildren()); setProperties(queue.getProperties()); setJobStatuses(queue.getJobStatuses()); }
JobQueueInfo(QueueInfo queue) { this(queue.getQueueName(), queue.getSchedulingInfo()); setQueueState(queue.getState().getStateName()); setQueueChildren(queue.getQueueChildren()); setProperties(queue.getProperties()); setJobStatuses(queue.getJobStatuses()); }
JobQueueInfo(QueueInfo queue) { this(queue.getQueueName(), queue.getSchedulingInfo()); setQueueState(queue.getState().getStateName()); setQueueChildren(queue.getQueueChildren()); setProperties(queue.getProperties()); setJobStatuses(queue.getJobStatuses()); }