Class ExecSorterByConstraintSeverity
java.lang.Object
org.apache.storm.scheduler.resource.strategies.scheduling.sorter.ExecSorterByConstraintSeverity
- All Implemented Interfaces:
- IExecSorter
- 
Constructor SummaryConstructorsConstructorDescriptionExecSorterByConstraintSeverity(Cluster cluster, TopologyDetails topologyDetails) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected <K extends Comparable<K>,V extends Comparable<V>> 
 NavigableMap<K,V> sortByValues(Map<K, V> map) Used to sort a Map by the values - higher values up front.sortExecutors(Set<ExecutorDetails> unassignedExecutors) Sort the supplied unique collection of ExecutorDetails in the order in which they should be scheduled.
- 
Constructor Details- 
ExecSorterByConstraintSeverity
 
- 
- 
Method Details- 
sortExecutorsDescription copied from interface:IExecSorterSort the supplied unique collection of ExecutorDetails in the order in which they should be scheduled. Both the input and output collections contain the same number of unique ExecutorDetails.- 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.
 
- 
sortByValuesprotected <K extends Comparable<K>,V extends Comparable<V>> NavigableMap<K,V> sortByValues(Map<K, V> map) Used to sort a Map by the values - higher values up front.
 
-