public class ExecSorterByProximity extends Object implements IExecSorter
Modifier and Type | Field and Description |
---|---|
protected TopologyDetails |
topologyDetails |
Constructor and Description |
---|
ExecSorterByProximity(TopologyDetails topologyDetails) |
Modifier and Type | Method and Description |
---|---|
List<ExecutorDetails> |
sortExecutors(Set<ExecutorDetails> unassignedExecutors)
Order executors by network proximity needs.
|
protected TopologyDetails topologyDetails
public ExecSorterByProximity(TopologyDetails topologyDetails)
public List<ExecutorDetails> sortExecutors(Set<ExecutorDetails> unassignedExecutors)
Order executors by network proximity needs. First add all executors for components that are in topological sorted order. Then add back executors not accounted for - which are system executors.
sortExecutors
in interface IExecSorter
unassignedExecutors
- an unmodifiable set of executors that need to be scheduled.Copyright © 2022 The Apache Software Foundation. All rights reserved.