public interface MultiNodeLookupPolicy<N extends SchedulerNode>
This class has the following functionality.
Provide an interface for MultiNodeLookupPolicy so that different placement allocator can choose nodes based on need.
| Modifier and Type | Method and Description | 
|---|---|
| void | addAndRefreshNodesSet(Collection<N> nodes,
                     String partition)Refresh working nodes set for re-ordering based on the algorithm selected. | 
| Set<N> | getNodesPerPartition(String partition)Get sorted nodes per partition. | 
| Iterator<N> | getPreferredNodeIterator(Collection<N> nodes,
                        String partition)Get iterator of preferred node depends on requirement and/or availability. | 
Iterator<N> getPreferredNodeIterator(Collection<N> nodes, String partition)
nodes - List of Nodespartition - node labelvoid addAndRefreshNodesSet(Collection<N> nodes, String partition)
nodes - a collection working nm's.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.