org.jppf.server.scheduler.bundle.providers
Class FixedSizeBundlerProvider

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.providers.FixedSizeBundlerProvider
All Implemented Interfaces:
JPPFBundlerProvider

public class FixedSizeBundlerProvider
extends Object
implements JPPFBundlerProvider

Provider implementation for the fixed bundle size load-balancing algorithm.

Author:
Laurent Cohen

Constructor Summary
FixedSizeBundlerProvider()
           
 
Method Summary
 Bundler createBundler(LoadBalancingProfile profile)
          Create a bundler instance using the specified parameters profile.
 LoadBalancingProfile createProfile(TypedProperties configuration)
          Create a bundler profile containing the parameters of the algorithm.
 String getAlgorithmName()
          Get the name of the algorithm defined by this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizeBundlerProvider

public FixedSizeBundlerProvider()
Method Detail

createBundler

public Bundler createBundler(LoadBalancingProfile profile)
Create a bundler instance using the specified parameters profile.

Specified by:
createBundler in interface JPPFBundlerProvider
Parameters:
profile - - an FixedSizeProfile instance.
Returns:
an instance of the bundler implementation defined by this provider.
See Also:
JPPFBundlerProvider.createBundler(org.jppf.server.scheduler.bundle.LoadBalancingProfile)

createProfile

public LoadBalancingProfile createProfile(TypedProperties configuration)
Create a bundler profile containing the parameters of the algorithm.

Specified by:
createProfile in interface JPPFBundlerProvider
Parameters:
configuration - - a set of properties defining the algorithm's parameters.
Returns:
an FixedSizeProfile instance.
See Also:
JPPFBundlerProvider.createProfile(org.jppf.utils.TypedProperties)

getAlgorithmName

public String getAlgorithmName()
Get the name of the algorithm defined by this provider.

Specified by:
getAlgorithmName in interface JPPFBundlerProvider
Returns:
the algorithm's name as a string.
See Also:
JPPFBundlerProvider.getAlgorithmName()


Copyright © 2005-2010 JPPF Team.