java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.allocation.AllocationFileParser

public class AllocationFileParser extends Object
Responsible for parsing allocation.xml config file. All node's text value is stored to textValues if VALID_TAG_NAMES contains the tag name. Other meaningful fields are also saved in parse().
  • Constructor Details

    • AllocationFileParser

      public AllocationFileParser(NodeList elements)
  • Method Details

    • parse

      public void parse() throws AllocationConfigurationException
      Throws:
      AllocationConfigurationException
    • getQueueMaxResourcesDefault

      public ConfigurableResource getQueueMaxResourcesDefault() throws AllocationConfigurationException
      Throws:
      AllocationConfigurationException
    • getUserMaxAppsDefault

      public int getUserMaxAppsDefault()
    • getDefaultFairSharePreemptionTimeout

      public long getDefaultFairSharePreemptionTimeout()
    • getDefaultMinSharePreemptionTimeout

      public long getDefaultMinSharePreemptionTimeout()
    • getQueueMaxAppsDefault

      public int getQueueMaxAppsDefault()
    • getDefaultFairSharePreemptionThreshold

      public float getDefaultFairSharePreemptionThreshold()
    • getQueueMaxAMShareDefault

      public float getQueueMaxAMShareDefault()
    • getReservationPlanner

      public Optional<String> getReservationPlanner()
    • getReservationAgent

      public Optional<String> getReservationAgent()
    • getReservationAdmissionPolicy

      public Optional<String> getReservationAdmissionPolicy()
    • getQueuePlacementPolicy

      public Optional<Element> getQueuePlacementPolicy()
    • getQueueElements

      public List<Element> getQueueElements()
    • getUserMaxApps

      public Map<String,Integer> getUserMaxApps()
    • getDefaultSchedulingPolicy

      public SchedulingPolicy getDefaultSchedulingPolicy()