Class QueueManagementDynamicEditPolicy

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueueManagementDynamicEditPolicy
All Implemented Interfaces:
SchedulingEditPolicy

public class QueueManagementDynamicEditPolicy extends Object implements SchedulingEditPolicy
Queue Management scheduling policy for managed parent queues which enable auto child queue creation
  • Constructor Details

    • QueueManagementDynamicEditPolicy

      public QueueManagementDynamicEditPolicy()
      Instantiated by CapacitySchedulerConfiguration
    • QueueManagementDynamicEditPolicy

      @VisibleForTesting public QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler)
    • QueueManagementDynamicEditPolicy

      @VisibleForTesting public QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler, org.apache.hadoop.yarn.util.Clock clock)
  • Method Details

    • init

      public void init(org.apache.hadoop.conf.Configuration config, RMContext context, ResourceScheduler sched)
      Specified by:
      init in interface SchedulingEditPolicy
    • reinitialize

      public void reinitialize(org.apache.hadoop.conf.Configuration config, RMContext context, ResourceScheduler sched)
      Reinitializes queues(Called on scheduler.reinitialize)
      Parameters:
      config - Configuration
      context - The resourceManager's context
      sched - The scheduler
    • editSchedule

      public void editSchedule()
      Description copied from interface: SchedulingEditPolicy
      This method is invoked at regular intervals. Internally the policy is allowed to track containers and affect the scheduler. The "actions" performed are passed back through an EventHandler.
      Specified by:
      editSchedule in interface SchedulingEditPolicy
    • getMonitoringInterval

      public long getMonitoringInterval()
      Specified by:
      getMonitoringInterval in interface SchedulingEditPolicy
    • getPolicyName

      public String getPolicyName()
      Specified by:
      getPolicyName in interface SchedulingEditPolicy
    • getResourceCalculator

      public org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()
    • getRmContext

      public RMContext getRmContext()
    • getRC

      public org.apache.hadoop.yarn.util.resource.ResourceCalculator getRC()
    • getScheduler

      public CapacityScheduler getScheduler()
    • getManagedParentQueues

      public Set<String> getManagedParentQueues()