Package org.jppf.load.balancer.impl
Class RL2Profile
java.lang.Object
org.jppf.load.balancer.AbstractLoadBalancingProfile
org.jppf.load.balancer.impl.RL2Profile
- All Implemented Interfaces:
Serializable,LoadBalancingProfile
Parameters profile for the "rl2" algorithm.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRL2Profile(TypedProperties config) Initialize this profile with values read from the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the maximum bundle size, expressed as a fraction in the range ]0.0, 1.0], of the current job size.intGet the number of known states from which the learning phase is considered complete.intGet the number of known states from which to start computing a probablity that the next action will be chsen randomly.intGet the maximum size of the performance samples cache.doubleGet the variation of the mean execution time that triggers a reset of the bundler.toString()
-
Constructor Details
-
RL2Profile
Initialize this profile with values read from the specified configuration.- Parameters:
config- contains a mapping of the profile parameters to their value.
-
-
Method Details
-
getPerformanceVariationThreshold
public double getPerformanceVariationThreshold()Get the variation of the mean execution time that triggers a reset of the bundler.- Returns:
- the variation threshold as a
doublevalue..
-
getPerformanceCacheSize
public int getPerformanceCacheSize()Get the maximum size of the performance samples cache.- Returns:
- the cache size as an
int.
-
getMinSamples
public int getMinSamples()Get the number of known states from which to start computing a probablity that the next action will be chsen randomly.- Returns:
- the min samples size as an
int.
-
getMaxSamples
public int getMaxSamples()Get the number of known states from which the learning phase is considered complete.- Returns:
- the min samples size as an
int.
-
getMaxRelativeSize
public double getMaxRelativeSize()Get the maximum bundle size, expressed as a fraction in the range ]0.0, 1.0], of the current job size.- Returns:
- the max relative size as a
doublevalue between 0 and 1.
-
toString
-