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)Notify the  OrderingPolicythat theSchedulableEntityhas been allocated the givenRMContainer, enabling theOrderingPolicyto take appropriate action. | 
| void | containerReleased(S schedulableEntity,
                 RMContainer r)Notify the  OrderingPolicythat theSchedulableEntityhas released the givenRMContainer, enabling theOrderingPolicyto take appropriate action. | 
| void | demandUpdated(S schedulableEntity)Notify the  OrderingPolicythat the demand for theSchedulableEntityhas been updated, enabling theOrderingPolicyto reorder theSchedulableEntityif needed. | 
| String | getConfigName()Return configuration name (which will be used to set ordering policy). | 
| String | getInfo()Return 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>conf - a map of scheduler configuration properties and valuespublic void containerAllocated(S schedulableEntity, RMContainer r)
OrderingPolicyOrderingPolicy that the SchedulableEntity
 has been allocated the given RMContainer, enabling the
 OrderingPolicy to take appropriate action. Depending on the
 comparator, a reordering of the SchedulableEntity may be required.containerAllocated in interface OrderingPolicy<S extends SchedulableEntity>containerAllocated in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>schedulableEntity - the SchedulableEntityr - the allocated RMContainerpublic void containerReleased(S schedulableEntity, RMContainer r)
OrderingPolicyOrderingPolicy that the SchedulableEntity
 has released the given RMContainer, enabling the
 OrderingPolicy to take appropriate action. Depending on the
 comparator, a reordering of the SchedulableEntity may be required.containerReleased in interface OrderingPolicy<S extends SchedulableEntity>containerReleased in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>schedulableEntity - the SchedulableEntityr - the released RMContainerpublic void demandUpdated(S schedulableEntity)
OrderingPolicyOrderingPolicy that the demand for the
 SchedulableEntity has been updated, enabling the
 OrderingPolicy to reorder the SchedulableEntity if needed.demandUpdated in interface OrderingPolicy<S extends SchedulableEntity>demandUpdated in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>schedulableEntity - the updated SchedulableEntitypublic String getInfo()
OrderingPolicygetInfo in interface OrderingPolicy<S extends SchedulableEntity>getInfo in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public String getConfigName()
OrderingPolicygetConfigName in interface OrderingPolicy<S extends SchedulableEntity>getConfigName in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.