public class BestNodeSelector extends Object implements NodeSelector
| Constructor and Description |
|---|
BestNodeSelector() |
BestNodeSelector(NodeSelector tieBreaker) |
| Modifier and Type | Method and Description |
|---|---|
List<HostingNodeInfo> |
assessNodes(List<HostingNode> candidates)
Assesses the suitability of the candidate set of nodes without keeping internal memory of node
selection.
|
void |
markSelected(HostingNode node) |
HostingNode |
selectNode(List<HostingNode> candidates)
Selects the most suitable node and marks the selection internally, if necessary
|
public BestNodeSelector(NodeSelector tieBreaker) throws Exception
Exceptionpublic HostingNode selectNode(List<HostingNode> candidates)
NodeSelectorselectNode in interface NodeSelectorcandidates - The candidate set of nodespublic List<HostingNodeInfo> assessNodes(List<HostingNode> candidates)
NodeSelectorassessNodes in interface NodeSelectorcandidates - The candidate set of nodespublic void markSelected(HostingNode node)
markSelected in interface NodeSelectorCopyright © 2018. All Rights Reserved.