SchedulingEditPolicypublic class QueueManagementDynamicEditPolicy extends java.lang.Object implements SchedulingEditPolicy
| Constructor | 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 | Description |
|---|---|---|
void |
editSchedule() |
This method is invoked at regular intervals.
|
java.util.Set<java.lang.String> |
getManagedParentQueues() |
|
long |
getMonitoringInterval() |
|
java.lang.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()
@VisibleForTesting public QueueManagementDynamicEditPolicy(RMContext context, CapacityScheduler scheduler)
@VisibleForTesting 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 java.lang.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()
public java.util.Set<java.lang.String> getManagedParentQueues()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.