public final class QueuePlacementRuleUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_USER_MAPPING |
static String |
PRIMARY_GROUP_MAPPING |
static String |
SECONDARY_GROUP_MAPPING |
Modifier and Type | Method and Description |
---|---|
static QueuePath |
extractQueuePath(String queuePath) |
static ApplicationPlacementContext |
getPlacementContext(QueueMappingEntity mapping,
CapacitySchedulerQueueManager queueManager) |
static ApplicationPlacementContext |
getPlacementContext(QueueMappingEntity mapping,
String leafQueueName,
CapacitySchedulerQueueManager queueManager) |
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 leafQueuePath) |
public static final String CURRENT_USER_MAPPING
public static final String PRIMARY_GROUP_MAPPING
public static final String SECONDARY_GROUP_MAPPING
public static void validateQueueMappingUnderParentQueue(CSQueue parentQueue, String parentQueueName, String leafQueuePath) 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 ApplicationPlacementContext getPlacementContext(QueueMappingEntity mapping, CapacitySchedulerQueueManager queueManager) throws IOException
IOException
public static ApplicationPlacementContext getPlacementContext(QueueMappingEntity mapping, String leafQueueName, CapacitySchedulerQueueManager queueManager) throws IOException
IOException
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.