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
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, updateSchedulingResourceUsage
public void configure(Map<String,String> conf)
OrderingPolicy
configure
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)
OrderingPolicy
OrderingPolicy
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 SchedulableEntity
r
- the allocated RMContainer
public void containerReleased(S schedulableEntity, RMContainer r)
OrderingPolicy
OrderingPolicy
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 SchedulableEntity
r
- the released RMContainer
public void demandUpdated(S schedulableEntity)
OrderingPolicy
OrderingPolicy
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 SchedulableEntity
public String getInfo()
OrderingPolicy
getInfo
in interface OrderingPolicy<S extends SchedulableEntity>
getInfo
in class AbstractComparatorOrderingPolicy<S extends SchedulableEntity>
Copyright © 2022 Apache Software Foundation. All rights reserved.