org.jppf.server.scheduler.bundle.fixedsize
Class FixedSizeBundler

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

public class FixedSizeBundler
extends AbstractBundler

This class provide a used defined bundle size strategy. It uses the size defined by admin in property file or the size defined by admin application.

Author:
Domingos Creado, Laurent Cohen

Field Summary
 
Fields inherited from class org.jppf.server.scheduler.bundle.AbstractBundler
bundlerNumber, profile, timestamp
 
Constructor Summary
FixedSizeBundler(LoadBalancingProfile profile)
          Initialize this bundler.
 
Method Summary
 Bundler copy()
          Make a copy of this bundler.
 int getBundleSize()
          This method always returns a statically assigned bundle size.
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, feedback, getBundlerNumber, getProfile, getTimestamp, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizeBundler

public FixedSizeBundler(LoadBalancingProfile profile)
Initialize this bundler.

Parameters:
profile - - contains the parameters for this bundler.
Method Detail

getBundleSize

public int getBundleSize()
This method always returns a statically assigned bundle size.

Returns:
the bundle size defined in the JPPF driver configuration.
See Also:
Bundler.getBundleSize()

copy

public Bundler copy()
Make a copy of this bundler.

Returns:
a reference to this bundler, no copy is actually made.
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()


Copyright © 2005-2010 JPPF Team.