gr.uoa.di.madgik.commons.infra.nodeselection
Interface NodeSelector

All Known Implementing Classes:
BestNodeSelector, CostBasedNodeSelector, DistanceNodeSelector, LRUNodeSelector, MRUNodeSelector, RandomNodeSelector, RUNodeSelector

public interface NodeSelector


Method Summary
 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
 

Method Detail

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 © 2013. All Rights Reserved.