Class ServiceStrategy
java.lang.Object
NetStrategies.ServiceStrategy
- All Implemented Interfaces:
AutoCheck
- Direct Known Subclasses:
DisabledServiceTimeStrategy, LoadDependentStrategy, ServiceTimeStrategy, ZeroServiceTimeStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()Override this method to implement a specific auto-check for the class.abstract doubleexpect(NodeSection nodeSection, JobClass jobClass) This method should be overridden to implement a specific strategy.abstract doublewait(NodeSection nodeSection, JobClass jobClass) This method should be overridden to implement a specific strategy.
-
Constructor Details
-
ServiceStrategy
public ServiceStrategy()
-
-
Method Details
-
wait
This method should be overridden to implement a specific strategy.- Parameters:
nodeSection- the node section which applies this strategy.jobClass- the job class which follows this strategy.- Returns:
- the value of service time.
- Throws:
NetException
-
expect
This method should be overridden to implement a specific strategy.- Parameters:
nodeSection- the node section which applies this strategy.jobClass- the job class which follows this strategy.- Returns:
- the value of service mean.
- Throws:
NetException
-
check
-