Class AutotunedDelegatingBundler

java.lang.Object
org.jppf.load.balancer.AbstractBundler<AnnealingTuneProfile>
org.jppf.load.balancer.impl.AutotunedDelegatingBundler
All Implemented Interfaces:
Bundler<AnnealingTuneProfile>, ContextAwareness

public class AutotunedDelegatingBundler extends AbstractBundler<AnnealingTuneProfile>
Instances of this bundler delegate their operations to a singleton instance of a AutoTunedBundler.
Author:
Laurent Cohen
  • Constructor Details

    • AutotunedDelegatingBundler

      public AutotunedDelegatingBundler(AnnealingTuneProfile profile)
      Creates a new instance with the initial size of bundle as the start size.
      Parameters:
      profile - the parameters of the auto-tuning algorithm grouped as a performance analysis profile.
  • Method Details

    • getBundleSize

      public int getBundleSize()
      Get the current size of bundle.
      Returns:
      the bundle size as an int value.
    • feedback

      public void feedback(int bundleSize, double totalTime)
      This method delegates the bundle size calculation to the singleton instance of SimpleBundler.
      Specified by:
      feedback in interface Bundler<AnnealingTuneProfile>
      Overrides:
      feedback in class AbstractBundler<AnnealingTuneProfile>
      Parameters:
      bundleSize - the number of tasks executed.
      totalTime - the time in nanoseconds it took to execute the tasks.
    • maxSize

      public int maxSize()
      Get the max bundle size that can be used for this bundler.
      Overrides:
      maxSize in class AbstractBundler<AnnealingTuneProfile>
      Returns:
      the bundle size as an int.