public abstract class RUNodeSelector extends Object implements NodeSelector
| Modifier and Type | Field and Description |
|---|---|
protected NodeSelector |
tieBreakerSelector |
protected static Map<String,Long> |
timingInfo |
| Constructor and Description |
|---|
RUNodeSelector() |
RUNodeSelector(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.
|
abstract HostingNode |
getRUNode(List<HostingNode> candidates) |
static void |
main(String[] args) |
void |
markSelected(HostingNode node) |
HostingNode |
selectNode(List<HostingNode> candidates)
Selects the most suitable node and marks the selection internally, if necessary
|
abstract Map<String,Long> |
sortTimingInfo() |
protected NodeSelector tieBreakerSelector
public RUNodeSelector()
public RUNodeSelector(NodeSelector tieBreaker)
public HostingNode selectNode(List<HostingNode> candidates)
NodeSelectorselectNode in interface NodeSelectorcandidates - The candidate set of nodespublic abstract HostingNode getRUNode(List<HostingNode> candidates)
public List<HostingNodeInfo> assessNodes(List<HostingNode> candidates)
NodeSelectorassessNodes in interface NodeSelectorcandidates - The candidate set of nodespublic void markSelected(HostingNode node)
markSelected in interface NodeSelectorpublic static void main(String[] args)
Copyright © 2018. All Rights Reserved.