Class ShortestResponseTimeRoutingStrategy
java.lang.Object
NetStrategies.RoutingStrategy
NetStrategies.RoutingStrategies.ShortestResponseTimeRoutingStrategy
- All Implemented Interfaces:
AutoCheck
This strategy sends jobs to the resource with the shortest response time.
Date: 13-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 response time for this jobClass among the output nodes.Methods inherited from class RoutingStrategy
check, getOutNode, getOutNode
-
Constructor Details
-
ShortestResponseTimeRoutingStrategy
public ShortestResponseTimeRoutingStrategy()
-
-
Method Details
-
getOutNode
This strategy selects the resource with the shortest response time for this jobClass 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.
-