public class FifoOrderingPolicy<S extends SchedulableEntity> extends AbstractComparatorOrderingPolicy<S>
comparator, entitiesToReorder, schedulableEntities| Constructor and Description |
|---|
FifoOrderingPolicy() |
| 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
|
addAllSchedulableEntities, addSchedulableEntity, entityRequiresReordering, getAssignmentIterator, getComparator, getNumSchedulableEntities, getPreemptionIterator, getSchedulableEntities, removeSchedulableEntity, reorderSchedulableEntity, reorderScheduleEntities, updateSchedulingResourceUsagepublic 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.