Class ShortestQueueLengthRoutingStrategy
java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.ShortestQueueLengthRoutingStrategy
- All Implemented Interfaces:
AutoCheck
This strategy sends jobs to the resource with the shortest queue length.
Date: 11-nov-2005
- Author:
- Bertoli Marco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOutNode(NetNode ownerNode, JobClass jobClass) This strategy selects the resource with the shortest queue length among the output nodes.Methods inherited from class RoutingStrategy
check, getOutNode, getOutNode
-
Constructor Details
-
ShortestQueueLengthRoutingStrategy
public ShortestQueueLengthRoutingStrategy()
-
-
Method Details
-
getOutNode
This strategy selects the resource with the shortest queue length among the output nodes.- Specified by:
getOutNodein classRoutingStrategy- Parameters:
ownerNode- Owner node of the output section.jobClass- Class of current job to be routed.- Returns:
- Selected node.
-