Class NullReplicationController
- java.lang.Object
-
- uk.co.ractf.polaris.controller.replication.NullReplicationController
-
- All Implemented Interfaces:
ReplicationController
public class NullReplicationController extends java.lang.Object implements ReplicationController
An implementation ofReplicationControllerthat will ensure there is always 0 ofInstances
-
-
Constructor Summary
Constructors Constructor Description NullReplicationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetScaleAmount(java.util.List<uk.co.ractf.polaris.api.instance.Instance> instances, ClusterState clusterState)Calculate how many instances need scheduling or descheduling based on the current state of the cluster.
-
-
-
Method Detail
-
getScaleAmount
public int getScaleAmount(java.util.List<uk.co.ractf.polaris.api.instance.Instance> instances, ClusterState clusterState)Description copied from interface:ReplicationControllerCalculate how many instances need scheduling or descheduling based on the current state of the cluster.- Specified by:
getScaleAmountin interfaceReplicationController- Parameters:
instances- the current instance listclusterState- the cluster state- Returns:
- the amount to scale by
-
-