|
|||||||||
| 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.random.RandomNodeSelector
public class RandomNodeSelector
| Constructor Summary | |
|---|---|
RandomNodeSelector()
|
|
| 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. |
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 RandomNodeSelector()
| Method Detail |
|---|
public HostingNode selectNode(java.util.List<HostingNode> candidates)
NodeSelector
selectNode in interface NodeSelectorcandidates - The candidate set of nodes
public java.util.List<HostingNodeInfo> assessNodes(java.util.List<HostingNode> candidates)
NodeSelector
assessNodes in interface NodeSelectorcandidates - The candidate set of nodes
public void markSelected(HostingNode node)
markSelected in interface NodeSelector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||