Class PowerOfKRoutingStrategy

All Implemented Interfaces:
AutoCheck

public class PowerOfKRoutingStrategy extends PropertyBasedStrategy
This strategy picks, at random, k resources and sends jobs to the resource with the shortest queue.
Author:
Vaibhav Krishnakumar, Bertoli Marco
  • Constructor Details

    • PowerOfKRoutingStrategy

      public PowerOfKRoutingStrategy(Integer k, Boolean withMemory)
      Creates a Power of K Routing Strategy with the passed parameter k.
      Parameters:
      k - the number of output nodes to chose from
  • Method Details