Class FifoOrderingPolicyForPendingApps<S extends SchedulableEntity>

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.policy.AbstractComparatorOrderingPolicy<S>
org.apache.hadoop.yarn.server.resourcemanager.scheduler.policy.FifoOrderingPolicyForPendingApps<S>
All Implemented Interfaces:
OrderingPolicy<S>

public class FifoOrderingPolicyForPendingApps<S extends SchedulableEntity> extends AbstractComparatorOrderingPolicy<S>
This ordering policy is used for pending applications only. An OrderingPolicy which orders SchedulableEntities by
  • Recovering application
  • Priority of an application
  • Input order

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)