public class QueueManagementDynamicEditPolicy extends Object implements SchedulingEditPolicy
| Constructor and Description |
|---|
QueueManagementDynamicEditPolicy()
Instantiated by CapacitySchedulerConfiguration
|
QueueManagementDynamicEditPolicy(RMContext context,
CapacityScheduler scheduler) |
QueueManagementDynamicEditPolicy(RMContext context,
CapacityScheduler scheduler,
org.apache.hadoop.yarn.util.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
editSchedule()
This method is invoked at regular intervals.
|
Set<String> |
getManagedParentQueues() |
long |
getMonitoringInterval() |
String |
getPolicyName() |
org.apache.hadoop.yarn.util.resource.ResourceCalculator |
getRC() |
org.apache.hadoop.yarn.util.resource.ResourceCalculator |
getResourceCalculator() |
RMContext |
getRmContext() |
CapacityScheduler |
getScheduler() |
void |
init(org.apache.hadoop.conf.Configuration config,
RMContext context,
ResourceScheduler sched) |
void |
reinitialize(org.apache.hadoop.conf.Configuration config,
RMContext context,
ResourceScheduler sched)
Reinitializes queues(Called on scheduler.reinitialize)
|
public QueueManagementDynamicEditPolicy()
public QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler)
public QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler, org.apache.hadoop.yarn.util.Clock clock)
public void init(org.apache.hadoop.conf.Configuration config,
RMContext context,
ResourceScheduler sched)
init in interface SchedulingEditPolicypublic void reinitialize(org.apache.hadoop.conf.Configuration config,
RMContext context,
ResourceScheduler sched)
config - Configurationcontext - The resourceManager's contextsched - The schedulerpublic void editSchedule()
SchedulingEditPolicyeditSchedule in interface SchedulingEditPolicypublic long getMonitoringInterval()
getMonitoringInterval in interface SchedulingEditPolicypublic String getPolicyName()
getPolicyName in interface SchedulingEditPolicypublic org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()
public RMContext getRmContext()
public org.apache.hadoop.yarn.util.resource.ResourceCalculator getRC()
public CapacityScheduler getScheduler()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.