Class AbstractLoadBalancer

    • Field Detail

      • balancing_interval

        protected double balancing_interval
        Minimum time that needs to pass between two load balancing attempts
      • queue_holder

        protected MultipleQueuesStrategy queue_holder
        Holder of the runqueues that need to be balanced.
      • prio_increasing

        protected boolean prio_increasing
        Determines the order how movable processes are returned. If true, the priority of the processes is increasing, otherwise decreasing.
      • queue_ascending

        protected boolean queue_ascending
        Determines the order how movable processes are returned. If true, the first processes are returned in the same order of the queue, otherwise they are returned in reverse order.
    • Constructor Detail

      • AbstractLoadBalancer

        protected AbstractLoadBalancer​(double balancing_interval,
                                       boolean prio_increasing,
                                       boolean queue_ascending)
        Creates a new instance of a load balancer.
        Parameters:
        balancing_interval - Minimum time that needs to pass between two executions of the load balancer.
        prio_increasing - Determines the order how movable processes are returned. If true, the priority of the processes is increasing, otherwise decreasing.
        queue_ascending - Determines the order how movable processes are returned. If true, the first processes are returned in the same order of the queue, otherwise they are returned in reverse order.