org.jppf.server.scheduler.bundle.impl
Class AutotunedDelegatingBundler

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.AbstractBundler
      extended by org.jppf.server.scheduler.bundle.impl.AutotunedDelegatingBundler
All Implemented Interfaces:
Bundler

public class AutotunedDelegatingBundler
extends AbstractBundler

Instances of this bundler delegate their operations to a singleton instance of a AutoTunedBundler.

Author:
Laurent Cohen

Field Summary
protected  AnnealingTuneProfile profile
          Parameters of the auto-tuning algorithm, grouped as a performance analysis profile.
 
Fields inherited from class org.jppf.server.scheduler.bundle.AbstractBundler
bundlerNumber, timestamp
 
Constructor Summary
AutotunedDelegatingBundler(AnnealingTuneProfile profile)
          Creates a new instance with the initial size of bundle as the start size.
 
Method Summary
 Bundler copy()
          Make a copy of this bundler
 void feedback(int bundleSize, double totalTime)
          This method delegates the bundle size calculation to the singleton instance of SimpleBundler.
 int getBundleSize()
          Get the current size of bundle.
protected  int maxSize()
          Get the max bundle size that can be used for this bundler.
 
Methods inherited from class org.jppf.server.scheduler.bundle.AbstractBundler
dispose, getBundlerNumber, getProfile, getTimestamp, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

profile

protected AnnealingTuneProfile profile
Parameters of the auto-tuning algorithm, grouped as a performance analysis profile.

Constructor Detail

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 Detail

copy

public Bundler copy()
Make a copy of this bundler

Returns:
a Bundler instance.
See Also:
Bundler.copy()

getBundleSize

public int getBundleSize()
Get the current size of bundle.

Returns:
the bundle size as an int value.
See Also:
Bundler.getBundleSize()

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
Overrides:
feedback in class AbstractBundler
Parameters:
bundleSize - the number of tasks executed.
totalTime - the time in milliseconds it took to execute the tasks.
See Also:
AbstractBundler.feedback(int, double)

maxSize

protected int maxSize()
Get the max bundle size that can be used for this bundler.

Specified by:
maxSize in class AbstractBundler
Returns:
the bundle size as an int.
See Also:
AbstractBundler.maxSize()


Copyright © 2005-2010 JPPF Team.