Class WeightedRoundRobinStrategy

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

public class WeightedRoundRobinStrategy extends RoutingStrategy
Weighted round robin routing strategy: destinations are selected cyclically with given weights.
  • Constructor Details

    • WeightedRoundRobinStrategy

      public WeightedRoundRobinStrategy(WeightEntry[] entries)
  • Method Details

    • getOutNode

      public NetNode getOutNode(NetNode ownerNode, JobClass jobClass)
      Gets the output node, into which the job must be routed, using a weighted round robin strategy.
      Specified by:
      getOutNode in class RoutingStrategy
      Parameters:
      ownerNode - Owner node of the output section.
      jobClass - Class of current job to be routed.
      Returns:
      The selected node.