public class MaximumCollocationPolicy extends Object implements NodeAssignmentPolicy
NodeAssignmentPolicy.Type| Modifier and Type | Field and Description |
|---|---|
static float |
DefaultPenalty |
| Constructor and Description |
|---|
MaximumCollocationPolicy(NodeSelector selector) |
MaximumCollocationPolicy(NodeSelector selector,
float threshold) |
MaximumCollocationPolicy(NodeSelector selector,
Float threshold) |
| Modifier and Type | Method and Description |
|---|---|
float |
getCommitFactor(HostingNode hn) |
NodeAssignmentPolicy.Type |
getType() |
void |
reset() |
HostingNode |
selectNode(List<HostingNode> candidates) |
void |
setPenalty(float collocationPenalty) |
public MaximumCollocationPolicy(NodeSelector selector)
public MaximumCollocationPolicy(NodeSelector selector, Float threshold)
public MaximumCollocationPolicy(NodeSelector selector, float threshold)
public NodeAssignmentPolicy.Type getType()
getType in interface NodeAssignmentPolicypublic void setPenalty(float collocationPenalty)
setPenalty in interface NodeAssignmentPolicypublic HostingNode selectNode(List<HostingNode> candidates) throws Exception
selectNode in interface NodeAssignmentPolicyExceptionpublic float getCommitFactor(HostingNode hn) throws Exception
Exceptionpublic void reset()
reset in interface NodeAssignmentPolicyCopyright © 2018. All Rights Reserved.