Class QueueManagementDynamicEditPolicy
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueueManagementDynamicEditPolicy
- All Implemented Interfaces:
SchedulingEditPolicy
Queue Management scheduling policy for managed parent queues which enable
auto child queue creation
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiated by CapacitySchedulerConfigurationQueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler) QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler, org.apache.hadoop.yarn.util.Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is invoked at regular intervals.longorg.apache.hadoop.yarn.util.resource.ResourceCalculatorgetRC()org.apache.hadoop.yarn.util.resource.ResourceCalculatorvoidinit(org.apache.hadoop.conf.Configuration config, RMContext context, ResourceScheduler sched) voidreinitialize(org.apache.hadoop.conf.Configuration config, RMContext context, ResourceScheduler sched) Reinitializes queues(Called on scheduler.reinitialize)
-
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:
initin interfaceSchedulingEditPolicy
-
reinitialize
public void reinitialize(org.apache.hadoop.conf.Configuration config, RMContext context, ResourceScheduler sched) Reinitializes queues(Called on scheduler.reinitialize)- Parameters:
config- Configurationcontext- The resourceManager's contextsched- The scheduler
-
editSchedule
public void editSchedule()Description copied from interface:SchedulingEditPolicyThis 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:
editSchedulein interfaceSchedulingEditPolicy
-
getMonitoringInterval
public long getMonitoringInterval()- Specified by:
getMonitoringIntervalin interfaceSchedulingEditPolicy
-
getPolicyName
- Specified by:
getPolicyNamein interfaceSchedulingEditPolicy
-
getResourceCalculator
public org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator() -
getRmContext
-
getRC
public org.apache.hadoop.yarn.util.resource.ResourceCalculator getRC() -
getScheduler
-
getManagedParentQueues
-