public class FifoOrderingPolicyForPendingApps<S extends SchedulableEntity> extends AbstractComparatorOrderingPolicy<S>
Example : If schedulableEntities with E1(true,1,1) E2(true,2,2) E3(true,3,3) E4(false,4,4) E5(false,4,5) are added. The ordering policy assignment iterator is in the order of E3(true,3,3) E2(true,2,2) E1(true,1,1) E5(false,5,5) E4(false,4,4)
comparator, entitiesToReorder, schedulableEntities| Constructor and Description |
|---|
FifoOrderingPolicyForPendingApps() |
| 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
OrderingPolicy that the SchedulableEntity
has been allocated the given RMContainer, enabling the
OrderingPolicy to take appropriate action. |
void |
containerReleased(S schedulableEntity,
RMContainer r)
Notify the
OrderingPolicy that the SchedulableEntity
has released the given RMContainer, enabling the
OrderingPolicy to take appropriate action. |
void |
demandUpdated(S schedulableEntity)
Notify the
OrderingPolicy that the demand for the
SchedulableEntity has been updated, enabling the
OrderingPolicy to reorder the SchedulableEntity if needed. |
String |
getInfo()
Return information regarding configuration and status.
|
addAllSchedulableEntities, addSchedulableEntity, entityRequiresReordering, getAssignmentIterator, getComparator, getNumSchedulableEntities, getPreemptionIterator, getSchedulableEntities, removeSchedulableEntity, reorderSchedulableEntity, reorderScheduleEntities, updateSchedulingResourceUsagepublic String getInfo()
OrderingPolicygetInfo in interface OrderingPolicy<S extends SchedulableEntity>getInfo in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>public 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 SchedulableEntityCopyright © 2022 Apache Software Foundation. All rights reserved.