|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.commons.infra.nodeselection.lru.LRUNodeSelector
public class LRUNodeSelector
Constructor Summary | |
---|---|
LRUNodeSelector()
|
Method Summary | |
---|---|
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. |
static void |
main(java.lang.String[] args)
|
void |
markSelected(HostingNode node)
|
HostingNode |
selectNode(java.util.List<HostingNode> candidates)
Selects the most suitable node and marks the selection internally, if necessary |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LRUNodeSelector()
Method Detail |
---|
public HostingNode selectNode(java.util.List<HostingNode> candidates)
NodeSelector
selectNode
in interface NodeSelector
candidates
- The candidate set of nodes
public java.util.List<HostingNodeInfo> assessNodes(java.util.List<HostingNode> candidates)
NodeSelector
assessNodes
in interface NodeSelector
candidates
- The candidate set of nodes
public void markSelected(HostingNode node)
markSelected
in interface NodeSelector
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |