Package org.jppf.load.balancer.spi
Class ProportionalBundlerProvider
java.lang.Object
org.jppf.load.balancer.spi.ProportionalBundlerProvider
- All Implemented Interfaces:
JPPFBundlerProvider<ProportionalProfile>
public class ProportionalBundlerProvider
extends Object
implements JPPFBundlerProvider<ProportionalProfile>
Provider implementation for the "proportional" load-balancing algorithm.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBundler(ProportionalProfile 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
-
ProportionalBundlerProvider
public ProportionalBundlerProvider()
-
-
Method Details
-
createBundler
Create a bundler instance using the specified parameters profile.- Specified by:
createBundlerin interfaceJPPFBundlerProvider<ProportionalProfile>- Parameters:
profile- encapsulates the parameters of this algorithm.- 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<ProportionalProfile>- Parameters:
configuration- a set of properties defining the algorithm's parameters.- Returns:
- an
ProportionalProfileinstance.
-
getAlgorithmName
Get the name of the algorithm defined by this provider.- Specified by:
getAlgorithmNamein interfaceJPPFBundlerProvider<ProportionalProfile>- Returns:
- the algorithm's name as a string.
-