Class ExecSorterByProximity
java.lang.Object
org.apache.storm.scheduler.resource.strategies.scheduling.sorter.ExecSorterByProximity
- All Implemented Interfaces:
- IExecSorter
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionsortExecutors(Set<ExecutorDetails> unassignedExecutors) Order executors by network proximity needs.
- 
Field Details- 
topologyDetails
 
- 
- 
Constructor Details- 
ExecSorterByProximity
 
- 
- 
Method Details- 
sortExecutorsOrder 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.- Specified by:
- sortExecutorsin interface- IExecSorter
- Parameters:
- unassignedExecutors- an unmodifiable set of executors that need to be scheduled.
- Returns:
- a list of executors in sorted order for scheduling.
 
 
-