public class FairOrderingPolicy<S extends SchedulableEntity> extends AbstractComparatorOrderingPolicy<S>
| Modifier and Type | Class and Description |
|---|---|
protected class |
FairOrderingPolicy.FairComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_SIZE_BASED_WEIGHT |
comparator, entitiesToReorder, schedulableEntities| Constructor and Description |
|---|
FairOrderingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,String> conf)
Provides configuration information for the policy from the scheduler
configuration
|
void |
containerAllocated(S schedulableEntity,
RMContainer r)
The passed SchedulableEntity has been allocated the passed Container,
take appropriate action (depending on comparator, a reordering of the
SchedulableEntity may be required)
|
void |
containerReleased(S schedulableEntity,
RMContainer r)
The passed SchedulableEntity has released the passed Container,
take appropriate action (depending on comparator, a reordering of the
SchedulableEntity may be required)
|
void |
demandUpdated(S schedulableEntity)
Demand Updated for the passed schedulableEntity, reorder if needed.
|
String |
getInfo()
Display information regarding configuration and status
|
boolean |
getSizeBasedWeight() |
void |
setSizeBasedWeight(boolean sizeBasedWeight) |
addAllSchedulableEntities, addSchedulableEntity, entityRequiresReordering, getAssignmentIterator, getComparator, getNumSchedulableEntities, getPreemptionIterator, getSchedulableEntities, removeSchedulableEntity, reorderSchedulableEntity, reorderScheduleEntities, updateSchedulingResourceUsagepublic static final String ENABLE_SIZE_BASED_WEIGHT
public boolean getSizeBasedWeight()
public void setSizeBasedWeight(boolean sizeBasedWeight)
public void configure(Map<String,String> conf)
OrderingPolicyconfigure in interface OrderingPolicy<S extends SchedulableEntity>configure in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public void containerAllocated(S schedulableEntity, RMContainer r)
OrderingPolicycontainerAllocated in interface OrderingPolicy<S extends SchedulableEntity>containerAllocated in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public void containerReleased(S schedulableEntity, RMContainer r)
OrderingPolicycontainerReleased in interface OrderingPolicy<S extends SchedulableEntity>containerReleased in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public void demandUpdated(S schedulableEntity)
OrderingPolicydemandUpdated in interface OrderingPolicy<S extends SchedulableEntity>demandUpdated in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public String getInfo()
OrderingPolicygetInfo in interface OrderingPolicy<S extends SchedulableEntity>getInfo in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>Copyright © 2017 Apache Software Foundation. All Rights Reserved.