Class WeightedRoundRobinStrategy
java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.WeightedRoundRobinStrategy
- All Implemented Interfaces:
AutoCheck
Weighted round robin routing strategy: destinations are selected cyclically with given weights.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOutNode(NetNode ownerNode, JobClass jobClass) Gets the output node, into which the job must be routed, using a weighted round robin strategy.Methods inherited from class RoutingStrategy
check, getOutNode, getOutNode
-
Constructor Details
-
WeightedRoundRobinStrategy
-
-
Method Details
-
getOutNode
Gets the output node, into which the job must be routed, using a weighted round robin strategy.- Specified by:
getOutNodein classRoutingStrategy- Parameters:
ownerNode- Owner node of the output section.jobClass- Class of current job to be routed.- Returns:
- The selected node.
-