Class QueuePlacementRuleUtils
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.QueuePlacementRuleUtils
Utility class for Capacity Scheduler queue PlacementRules.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationPlacementContextgetPlacementContext(QueueMapping mapping, String leafQueueName, CapacitySchedulerQueueManager queueManager) static ApplicationPlacementContextgetPlacementContext(QueueMapping mapping, CapacitySchedulerQueueManager queueManager) static booleanisStaticQueueMapping(QueueMapping mapping) static QueueMappingvalidateAndGetAutoCreatedQueueMapping(CapacitySchedulerQueueManager queueManager, QueueMapping mapping) static QueueMappingvalidateAndGetQueueMapping(CapacitySchedulerQueueManager queueManager, CSQueue queue, QueueMapping mapping) static voidvalidateQueueMappingUnderParentQueue(CSQueue parentQueue, String parentQueueName, String leafQueuePath)
-
Field Details
-
CURRENT_USER_MAPPING
- See Also:
-
PRIMARY_GROUP_MAPPING
- See Also:
-
SECONDARY_GROUP_MAPPING
- See Also:
-
-
Method Details
-
validateQueueMappingUnderParentQueue
public static void validateQueueMappingUnderParentQueue(CSQueue parentQueue, String parentQueueName, String leafQueuePath) throws IOException - Throws:
IOException
-
validateAndGetAutoCreatedQueueMapping
public static QueueMapping validateAndGetAutoCreatedQueueMapping(CapacitySchedulerQueueManager queueManager, QueueMapping mapping) throws IOException - Throws:
IOException
-
validateAndGetQueueMapping
public static QueueMapping validateAndGetQueueMapping(CapacitySchedulerQueueManager queueManager, CSQueue queue, QueueMapping mapping) throws IOException - Throws:
IOException
-
isStaticQueueMapping
-
getPlacementContext
public static ApplicationPlacementContext getPlacementContext(QueueMapping mapping, CapacitySchedulerQueueManager queueManager) throws IOException - Throws:
IOException
-
getPlacementContext
public static ApplicationPlacementContext getPlacementContext(QueueMapping mapping, String leafQueueName, CapacitySchedulerQueueManager queueManager) throws IOException - Throws:
IOException
-