org.jppf.client.loadbalancer
Class ClientProportionalBundler

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.AbstractBundler
      extended by org.jppf.server.scheduler.bundle.proportional.AbstractProportionalBundler
          extended by org.jppf.client.loadbalancer.ClientProportionalBundler
All Implemented Interfaces:
Bundler

public class ClientProportionalBundler
extends AbstractProportionalBundler

Implementation of the "proportional" load-balancing algortihm, dedicated to balancing the load between local and remote execution, when local execution is enabled in the client.

Author:
Laurent Cohen

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
ClientProportionalBundler(LoadBalancingProfile 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
protected  int maxSize()
          Get the max bundle size that can be used for this bundler.
 void setMaxSize(int maxBundleSize)
          Get the maximum size returned by 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

ClientProportionalBundler

public ClientProportionalBundler(LoadBalancingProfile 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()

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

setMaxSize

public void setMaxSize(int maxBundleSize)
Get the maximum size returned by this bundler.

Parameters:
maxBundleSize - the size as an int.


Copyright © 2005-2010 JPPF Team.