gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy
Class SingleRemoteNodePolicy
java.lang.Object
gr.uoa.di.madgik.commons.infra.nodeassignmentpolicy.SingleRemoteNodePolicy
- All Implemented Interfaces:
- NodeAssignmentPolicy
public class SingleRemoteNodePolicy
- extends Object
- implements NodeAssignmentPolicy
- Author:
- gerasimos.farantatos - DI NKUA
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleRemoteNodePolicy
public SingleRemoteNodePolicy(NodeSelector selector)
SingleRemoteNodePolicy
public SingleRemoteNodePolicy(NodeSelector selector,
float threshold)
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 © 2012. All Rights Reserved.