Class DefaultPlacementAlgorithm
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.algorithm.DefaultPlacementAlgorithm
- All Implemented Interfaces:
ConstraintPlacementAlgorithm
Basic placement algorithm.
Supports different Iterators at SchedulingRequest level including:
Serial, PopularTags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize the Algorithm.voidplace(ConstraintPlacementAlgorithmInput input, ConstraintPlacementAlgorithmOutputCollector collector) The Algorithm is expected to compute the placement of the provided ConstraintPlacementAlgorithmInput and use the collector to aggregate any output.
-
Constructor Details
-
DefaultPlacementAlgorithm
public DefaultPlacementAlgorithm()
-
-
Method Details
-
init
Description copied from interface:ConstraintPlacementAlgorithmInitialize the Algorithm.- Specified by:
initin interfaceConstraintPlacementAlgorithm- Parameters:
rmContext- RMContext.
-
place
public void place(ConstraintPlacementAlgorithmInput input, ConstraintPlacementAlgorithmOutputCollector collector) Description copied from interface:ConstraintPlacementAlgorithmThe Algorithm is expected to compute the placement of the provided ConstraintPlacementAlgorithmInput and use the collector to aggregate any output.- Specified by:
placein interfaceConstraintPlacementAlgorithm- Parameters:
input- Input to the Algorithm.collector- Collector for output of algorithm.
-