/** * Remove a leaf queue if empty * @param name name of the queue * @return true if queue was removed or false otherwise */ public boolean removeLeafQueue(String name) { name = ensureRootPrefix(name); return removeEmptyIncompatibleQueues(name, FSQueueType.PARENT); }
/** * Remove a leaf queue if empty * @param name name of the queue * @return true if queue was removed or false otherwise */ public boolean removeLeafQueue(String name) { name = ensureRootPrefix(name); return removeEmptyIncompatibleQueues(name, FSQueueType.PARENT); }
/** * Remove a leaf queue if empty. * @param name name of the queue * @return true if queue was removed or false otherwise */ public boolean removeLeafQueue(String name) { name = ensureRootPrefix(name); return !Boolean.FALSE.equals( removeEmptyIncompatibleQueues(name, FSQueueType.PARENT).orElse(null)); }
private void ensureQueueExistsAndIsCompatibleAndIsStatic( AllocationConfiguration queueConf, FSQueueType queueType) { for (String name : queueConf.getConfiguredQueues().get(queueType)) { Boolean removed = removeEmptyIncompatibleQueues(name, queueType).orElse(null); if (Boolean.FALSE.equals(removed)) { incompatibleQueuesPendingRemoval.add( new IncompatibleQueueRemovalTask(name, queueType)); } else { FSQueue queue = getQueue(name, true, queueType, false, null); if (queue != null) { queue.setDynamic(false); } } } }
public void updateAllocationConfiguration(AllocationConfiguration queueConf) { if (removeEmptyIncompatibleQueues(name, FSQueueType.LEAF)) { getLeafQueue(name, true); if (removeEmptyIncompatibleQueues(name, FSQueueType.PARENT)) { getParentQueue(name, true);
public void updateAllocationConfiguration(AllocationConfiguration queueConf) { if (removeEmptyIncompatibleQueues(name, FSQueueType.LEAF)) { getLeafQueue(name, true); if (removeEmptyIncompatibleQueues(name, FSQueueType.PARENT)) { getParentQueue(name, true);