Package org.jppf.load.balancer.spi
Class FixedSizeBundlerProvider
java.lang.Object
org.jppf.load.balancer.spi.FixedSizeBundlerProvider
- All Implemented Interfaces:
JPPFBundlerProvider<FixedSizeProfile>
public class FixedSizeBundlerProvider
extends Object
implements JPPFBundlerProvider<FixedSizeProfile>
Provider implementation for the fixed bundle size load-balancing algorithm.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBundler(FixedSizeProfile profile) Create a bundler instance using the specified parameters profile.createProfile(TypedProperties configuration) Create a bundler profile containing the parameters of the algorithm.Get the name of the algorithm defined by this provider.
-
Constructor Details
-
FixedSizeBundlerProvider
public FixedSizeBundlerProvider()
-
-
Method Details
-
createBundler
Create a bundler instance using the specified parameters profile.- Specified by:
createBundlerin interfaceJPPFBundlerProvider<FixedSizeProfile>- Parameters:
profile- anFixedSizeProfileinstance.- Returns:
- an instance of the bundler implementation defined by this provider.
-
createProfile
Create a bundler profile containing the parameters of the algorithm.- Specified by:
createProfilein interfaceJPPFBundlerProvider<FixedSizeProfile>- Parameters:
configuration- a set of properties defining the algorithm's parameters.- Returns:
- an
FixedSizeProfileinstance.
-
getAlgorithmName
Get the name of the algorithm defined by this provider.- Specified by:
getAlgorithmNamein interfaceJPPFBundlerProvider<FixedSizeProfile>- Returns:
- the algorithm's name as a string.
-