/** * Get the default priority of the queue. * @param queueName the queue name * @return the default priority of the queue */ public Priority getDefaultPriorityForQueue(String queueName) { Queue queue = getQueue(queueName); if (null == queue || null == queue.getDefaultApplicationPriority()) { // Return with default application priority return Priority.newInstance(CapacitySchedulerConfiguration .DEFAULT_CONFIGURATION_APPLICATION_PRIORITY); } return Priority.newInstance(queue.getDefaultApplicationPriority() .getPriority()); }