Class DisabledServiceTimeStrategy
java.lang.Object
NetStrategies.ServiceStrategy
NetStrategies.ServiceStrategies.DisabledServiceTimeStrategy
- All Implemented Interfaces:
AutoCheck
This service strategy always raises a warning.
- Author:
- Giuliano Casale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleexpect(NodeSection nodeSection, JobClass jobClass) Returns the service mean, which is always 0.0.doublewait(NodeSection nodeSection, JobClass jobClass) Returns the service time, which is always 0.0.Methods inherited from class ServiceStrategy
check
-
Constructor Details
-
DisabledServiceTimeStrategy
public DisabledServiceTimeStrategy()Creates a new instance of ServiceTime.
-
-
Method Details
-
wait
Returns the service time, which is always 0.0.- Specified by:
waitin classServiceStrategy- 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
Returns the service mean, which is always 0.0.- Specified by:
expectin classServiceStrategy- 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
-