gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy
Class SingleRemoteNodePolicy

java.lang.Object
  extended by gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy.SingleRemoteNodePolicy
All Implemented Interfaces:
NodeAssignmentPolicy

public class SingleRemoteNodePolicy
extends Object
implements NodeAssignmentPolicy

Author:
gerasimos.farantatos - DI NKUA

Nested Class Summary
 
Nested classes/interfaces inherited from interface gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy.NodeAssignmentPolicy
NodeAssignmentPolicy.Type
 
Constructor Summary
SingleRemoteNodePolicy(NodeSelector selector)
           
SingleRemoteNodePolicy(NodeSelector selector, float threshold)
           
 
Method Summary
 NodeAssignmentPolicy.Type getType()
           
 void reset()
           
 HostingNode selectNode(List<HostingNode> candidates)
           
 void setPenalty(float collocationPenalty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRemoteNodePolicy

public SingleRemoteNodePolicy(NodeSelector selector)

SingleRemoteNodePolicy

public SingleRemoteNodePolicy(NodeSelector selector,
                              float threshold)
Method Detail

getType

public NodeAssignmentPolicy.Type getType()
Specified by:
getType in interface NodeAssignmentPolicy

setPenalty

public void setPenalty(float collocationPenalty)
                throws Exception
Specified by:
setPenalty in interface NodeAssignmentPolicy
Throws:
Exception

selectNode

public HostingNode selectNode(List<HostingNode> candidates)
                       throws Exception
Specified by:
selectNode in interface NodeAssignmentPolicy
Throws:
Exception

reset

public void reset()
Specified by:
reset in interface NodeAssignmentPolicy


Copyright © 2013. All Rights Reserved.