gr.uoa.di.madgik.commons.infra.nodeselection
Interface NodeSelector
- All Known Implementing Classes:
- BestNodeSelector, CostBasedNodeSelector, DistanceNodeSelector, LRUNodeSelector, MRUNodeSelector, RandomNodeSelector, RUNodeSelector
public interface NodeSelector
selectNode
HostingNode selectNode(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
List<HostingNodeInfo> assessNodes(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)
Copyright © 2012. All Rights Reserved.