gr.uoa.di.madgik.commons.infra.nodeselection
Interface NodeSelector
- All Known Implementing Classes:
- BestNodeSelector, CostBasedNodeSelector, LRUNodeSelector, RandomNodeSelector
public interface NodeSelector
selectNode
HostingNode selectNode(java.util.List<HostingNode> candidates)
- Selects the most suitable node and marks the selection internally, if necessary
- Parameters:
candidates
- The candidate set of nodes
- Returns:
- The most suitable node
assessNodes
java.util.List<HostingNodeInfo> assessNodes(java.util.List<HostingNode> candidates)
- Assesses the suitability of the candidate set of nodes without keeping internal memory of node
selection.
- Parameters:
candidates
- The candidate set of nodes
- Returns:
- A sorted list of the candidate set ordered by the most to the least suitable.
markSelected
void markSelected(HostingNode node)