java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AutoCreatedQueueTemplate

public class AutoCreatedQueueTemplate extends Object
A handler for storing and setting auto created queue template settings.
  • Field Details

  • Constructor Details

  • Method Details

    • getAutoQueueTemplatePrefix

      @VisibleForTesting public static String getAutoQueueTemplatePrefix(QueuePath queuePath)
    • getTemplateProperties

      public Map<String,String> getTemplateProperties()
      Get the common template properties specified for a parent queue.
      Returns:
      template property names and values
    • getLeafOnlyProperties

      public Map<String,String> getLeafOnlyProperties()
      Get the leaf specific template properties specified for a parent queue.
      Returns:
      template property names and values
    • getParentOnlyProperties

      public Map<String,String> 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 set
      childQueuePath - 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 set
      isLeaf - whether to include leaf specific template properties, or parent specific template properties
      childQueuePath - child queue path used for prefixing the properties