Class AutoCreatedQueueTemplate
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AutoCreatedQueueTemplate
A handler for storing and setting auto created queue template settings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAutoCreatedQueueTemplate(CapacitySchedulerConfiguration configuration, QueuePath queuePath) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAutoQueueTemplatePrefix(QueuePath queuePath) Get the leaf specific template properties specified for a parent queue.Get the parent specific template properties specified for a parent queue.Get the common template properties specified for a parent queue.voidsetTemplateEntriesForChild(CapacitySchedulerConfiguration conf, QueuePath childQueuePath) Sets the common template properties and parent specific template properties of a child queue based on its parent template settings.voidsetTemplateEntriesForChild(CapacitySchedulerConfiguration conf, QueuePath childQueuePath, boolean isLeaf) Sets the common template properties and leaf or parent specific template properties of a child queue based on its parent template settings.
-
Field Details
-
AUTO_QUEUE_TEMPLATE_PREFIX
- See Also:
-
AUTO_QUEUE_LEAF_TEMPLATE_PREFIX
- See Also:
-
AUTO_QUEUE_PARENT_TEMPLATE_PREFIX
- See Also:
-
WILDCARD_QUEUE
- See Also:
-
-
Constructor Details
-
AutoCreatedQueueTemplate
-
-
Method Details
-
getAutoQueueTemplatePrefix
-
getTemplateProperties
Get the common template properties specified for a parent queue.- Returns:
- template property names and values
-
getLeafOnlyProperties
Get the leaf specific template properties specified for a parent queue.- Returns:
- template property names and values
-
getParentOnlyProperties
Get the parent specific template properties specified for a parent queue.- Returns:
- template property names and values
-
setTemplateEntriesForChild
public void setTemplateEntriesForChild(CapacitySchedulerConfiguration conf, QueuePath childQueuePath) Sets the common template properties and parent specific template properties of a child queue based on its parent template settings.- Parameters:
conf- configuration to setchildQueuePath- child queue path used for prefixing the properties
-
setTemplateEntriesForChild
public void setTemplateEntriesForChild(CapacitySchedulerConfiguration conf, QueuePath childQueuePath, boolean isLeaf) Sets the common template properties and leaf or parent specific template properties of a child queue based on its parent template settings. template settings.- Parameters:
conf- configuration to setisLeaf- whether to include leaf specific template properties, or parent specific template propertieschildQueuePath- child queue path used for prefixing the properties
-