org.jppf.server.scheduler.bundle.impl
Class NodeSimulator.SimulatedProportionalBundler

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.AbstractBundler
      extended by org.jppf.server.scheduler.bundle.proportional.AbstractProportionalBundler
          extended by org.jppf.server.scheduler.bundle.impl.NodeSimulator.SimulatedProportionalBundler
All Implemented Interfaces:
Bundler
Enclosing class:
NodeSimulator

public static class NodeSimulator.SimulatedProportionalBundler
extends AbstractProportionalBundler

Used in simulations of proportianl bundlers.


Field Summary
 
Fields inherited from class org.jppf.server.scheduler.bundle.proportional.AbstractProportionalBundler
bundleSize, dataHolder
 
Fields inherited from class org.jppf.server.scheduler.bundle.AbstractBundler
bundlerNumber, profile, timestamp
 
Constructor Summary
NodeSimulator.SimulatedProportionalBundler(LoadBalancingProfile profile, int maximumSize)
          Creates a new instance with the initial size of bundle as the start size.
 
Method Summary
 Bundler copy()
          Make a copy of this bundler
protected  int maxSize()
          Get the max bundle size that can be used for this bundler.
 
Methods inherited from class org.jppf.server.scheduler.bundle.proportional.AbstractProportionalBundler
dispose, feedback, getBundleSize, getDataHolder, normalize, setBundleSize, setup
 
Methods inherited from class org.jppf.server.scheduler.bundle.AbstractBundler
getBundlerNumber, getProfile, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeSimulator.SimulatedProportionalBundler

public NodeSimulator.SimulatedProportionalBundler(LoadBalancingProfile profile,
                                                  int maximumSize)
Creates a new instance with the initial size of bundle as the start size.

Parameters:
profile - the parameters of the auto-tuning algorithm.
maximumSize - the maximum bundle size. grouped as a performance analysis profile.
Method Detail

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()

copy

public Bundler copy()
Make a copy of this bundler

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


Copyright © 2005-2010 JPPF Team.