Class ProportionalProfile

java.lang.Object
org.jppf.load.balancer.AbstractLoadBalancingProfile
org.jppf.load.balancer.impl.ProportionalProfile
All Implemented Interfaces:
Serializable, LoadBalancingProfile

public class ProportionalProfile extends AbstractLoadBalancingProfile
Parameters profile for a proportional bundler.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • ProportionalProfile

      public ProportionalProfile()
      Initialize this profile with default parameters.
    • ProportionalProfile

      public ProportionalProfile(TypedProperties config)
      Initialize this profile with values read from the configuration file.
      Parameters:
      config - contains a mapping of the profile parameters to their value.
  • Method Details

    • 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.
    • getProportionalityFactor

      public int getProportionalityFactor()
      Get the proportionality factor.
      Returns:
      the factor as an int.
    • setProportionalityFactor

      public void setProportionalityFactor(int proportionalityFactor)
      Set the proportionality factor.
      Parameters:
      proportionalityFactor - the factor as an int.
    • getDefaultProfile

      public static ProportionalProfile getDefaultProfile()
      Get the default profile with default parameter values.
      Returns:
      a ProportionalTuneProfile singleton instance.
    • getInitialSize

      public int getInitialSize()
      Get the initial bundle size to use when the performance cache is empty.
      Returns:
      the initial size as an int.
    • setInitialSize

      public void setInitialSize(int initialSize)
      Set the initial bundle size to use when the performance cache is empty.
      Parameters:
      initialSize - the initial size as an int.
    • getInitialMeanTime

      public double getInitialMeanTime()
      Get the initial value of the mean execution time, used to bootstrap the algorithm.
      Returns:
      the initial mean time as a double.
    • setInitialMeanTime

      public void setInitialMeanTime(double initialMeanTime)
      Set the initial value of the mean execution time, used to bootstrap the algorithm.
      Parameters:
      initialMeanTime - the initial mean time as a double.
    • toString

      public String toString()
      Return a string representation of this profile.
      Overrides:
      toString in class Object
      Returns:
      this profile represented as a string value.