public final class QueuePlacementRuleUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_USER_MAPPING |
static String |
PRIMARY_GROUP_MAPPING |
Modifier and Type | Method and Description |
---|---|
static QueuePath |
extractQueuePath(String queueName) |
static ApplicationPlacementContext |
getPlacementContext(QueueMappingEntity mapping) |
static ApplicationPlacementContext |
getPlacementContext(QueueMappingEntity mapping,
String leafQueueName) |
static boolean |
isStaticQueueMapping(QueueMappingEntity mapping) |
static QueueMappingEntity |
validateAndGetAutoCreatedQueueMapping(CapacitySchedulerQueueManager queueManager,
QueueMappingEntity mapping,
QueuePath queuePath) |
static QueueMappingEntity |
validateAndGetQueueMapping(CapacitySchedulerQueueManager queueManager,
CSQueue queue,
QueueMappingEntity mapping,
QueuePath queuePath) |
static void |
validateQueueMappingUnderParentQueue(CSQueue parentQueue,
String parentQueueName,
String leafQueueName) |
public static final String CURRENT_USER_MAPPING
public static final String PRIMARY_GROUP_MAPPING
public static void validateQueueMappingUnderParentQueue(CSQueue parentQueue, String parentQueueName, String leafQueueName) throws IOException
IOException
public static QueueMappingEntity validateAndGetAutoCreatedQueueMapping(CapacitySchedulerQueueManager queueManager, QueueMappingEntity mapping, QueuePath queuePath) throws IOException
IOException
public static QueueMappingEntity validateAndGetQueueMapping(CapacitySchedulerQueueManager queueManager, CSQueue queue, QueueMappingEntity mapping, QueuePath queuePath) throws IOException
IOException
public static boolean isStaticQueueMapping(QueueMappingEntity mapping)
public static QueuePath extractQueuePath(String queueName) throws IOException
IOException
public static ApplicationPlacementContext getPlacementContext(QueueMappingEntity mapping)
public static ApplicationPlacementContext getPlacementContext(QueueMappingEntity mapping, String leafQueueName)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.