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 ofReplicationController
that will ensure there is always 0 ofInstance
s
-
-
Constructor Summary
Constructors Constructor Description NullReplicationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getScaleAmount(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:ReplicationController
Calculate how many instances need scheduling or descheduling based on the current state of the cluster.- Specified by:
getScaleAmount
in interfaceReplicationController
- Parameters:
instances
- the current instance listclusterState
- the cluster state- Returns:
- the amount to scale by
-
-