Class ShortestQueueLengthRoutingStrategy

java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.ShortestQueueLengthRoutingStrategy
All Implemented Interfaces:
AutoCheck

public class ShortestQueueLengthRoutingStrategy extends RoutingStrategy
This strategy sends jobs to the resource with the shortest queue length. Date: 11-nov-2005
Author:
Bertoli Marco
  • Constructor Details

    • ShortestQueueLengthRoutingStrategy

      public ShortestQueueLengthRoutingStrategy()
  • Method Details

    • getOutNode

      public NetNode getOutNode(NetNode ownerNode, JobClass jobClass)
      This strategy selects the resource with the shortest queue length among the output nodes.
      Specified by:
      getOutNode in class RoutingStrategy
      Parameters:
      ownerNode - Owner node of the output section.
      jobClass - Class of current job to be routed.
      Returns:
      Selected node.