public class CostBasedNodeSelector extends Object implements NodeSelector
| Constructor and Description |
|---|
CostBasedNodeSelector(CostFunction function) |
CostBasedNodeSelector(CostFunction function,
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 CostBasedNodeSelector(CostFunction function)
public CostBasedNodeSelector(CostFunction function, NodeSelector tieBreaker)
public 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.