Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullReplicationController

        public NullReplicationController()
    • 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 interface ReplicationController
        Parameters:
        instances - the current instance list
        clusterState - the cluster state
        Returns:
        the amount to scale by