org.jppf.server.scheduler.bundle.rl
Class RLProfile

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.autotuned.AbstractAutoTuneProfile
      extended by org.jppf.server.scheduler.bundle.rl.RLProfile
All Implemented Interfaces:
Serializable, LoadBalancingProfile

public class RLProfile
extends AbstractAutoTuneProfile

Parameters profile for a proportional bundler.

Author:
Laurent Cohen
See Also:
Serialized Form

Constructor Summary
RLProfile()
          Initialize this profile with default parameters.
RLProfile(String profileName)
          Initialize this profile with values read from the configuration file.
RLProfile(TypedProperties config)
          Initialize this profile with values read from the specified configuration.
 
Method Summary
 LoadBalancingProfile copy()
          Make a copy of this profile.
 int getMaxActionRange()
          Get the absolute value of the maximum increase of the the bundle size.
 int getPerformanceCacheSize()
          Get the maximum size of the performance samples cache.
 double getPerformanceVariationThreshold()
          Get the variation of the mean execution time that triggers a change in bundle size.
 void setMaxActionRange(int maxActionRange)
          Get the absolute value of the maximum increase of the the bundle size.
 void setPerformanceCacheSize(int performanceCacheSize)
          Set the maximum size of the performance samples cache.
 void setPerformanceVariationThreshold(double performanceVariationThreshold)
          Get the variation of the mean execution time that triggers a change in bundle size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLProfile

public RLProfile()
Initialize this profile with default parameters.


RLProfile

public RLProfile(String profileName)
Initialize this profile with values read from the configuration file.

Parameters:
profileName - name of the profile in the configuration file.

RLProfile

public RLProfile(TypedProperties config)
Initialize this profile with values read from the specified configuration.

Parameters:
config - contains a mapping of the profile parameters to their value.
Method Detail

copy

public LoadBalancingProfile copy()
Make a copy of this profile.

Returns:
a new AutoTuneProfile instance.
See Also:
LoadBalancingProfile.copy()

getPerformanceCacheSize

public int getPerformanceCacheSize()
Get the maximum size of the performance samples cache.

Returns:
the cache size as an int.

setPerformanceCacheSize

public void setPerformanceCacheSize(int performanceCacheSize)
Set the maximum size of the performance samples cache.

Parameters:
performanceCacheSize - - the cache size as an int.

getPerformanceVariationThreshold

public double getPerformanceVariationThreshold()
Get the variation of the mean execution time that triggers a change in bundle size.

Returns:
the variation as a double value.

setPerformanceVariationThreshold

public void setPerformanceVariationThreshold(double performanceVariationThreshold)
Get the variation of the mean execution time that triggers a change in bundle size.

Parameters:
performanceVariationThreshold - - the variation as a double value.

getMaxActionRange

public int getMaxActionRange()
Get the absolute value of the maximum increase of the the bundle size.

Returns:
the value as an int.

setMaxActionRange

public void setMaxActionRange(int maxActionRange)
Get the absolute value of the maximum increase of the the bundle size.

Parameters:
maxActionRange - - the value as an int.


Copyright © 2005-2010 JPPF Team.