|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.scheduler.bundle.spi.JPPFBundlerFactory
public class JPPFBundlerFactory
Factory class for JPPF load-balancing algorithms defined through the JPPFBundlerProvider
service provider interface.
| Constructor Summary | |
|---|---|
JPPFBundlerFactory()
|
|
| Method Summary | |
|---|---|
TypedProperties |
convertJPPFConfiguration(String profileName,
TypedProperties configuration)
Convert a JPPF confgiguration map to a profile configuration by extracting the properties related to the specified profile and removing the JPPF-specific prefix from their name. |
Bundler |
createBundler(String name,
TypedProperties configuration)
Create an instance of the bundler with the specified name and parameters. |
Bundler |
createBundlerFromJPPFConfiguration()
Create an instance of the bundler such as specified in the JPPF configuration file. |
TypedProperties |
extractJPPFConfiguration(String profileName,
TypedProperties configuration)
Extract the JPPF-prefixed load-balancing parameters from the specified configuration and based on the specified profile name. |
JPPFBundlerProvider |
getBundlerProvider(String name)
Get the bundler provider with the specified name. |
List<String> |
getBundlerProviderNames()
Get the names of all discovered bundler providers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFBundlerFactory()
| Method Detail |
|---|
public Bundler createBundler(String name,
TypedProperties configuration)
throws Exception
name - the name of the bundler's algorithm, such as specified in the bundler provider and in the configuration.configuration - a map of alogrithm parameters to their value.
Bundler instance.
Exception - if the bundler could not be created.
public Bundler createBundlerFromJPPFConfiguration()
throws Exception
Bundler instance.
Exception - if the bundler could not be created.
public JPPFBundlerProvider getBundlerProvider(String name)
throws Exception
name - the name of the bundler provider to retrieve.
JPPFBundlerProvider instance or null if the provider could not be found.
Exception - if any error occurs while loading the providers.
public List<String> getBundlerProviderNames()
throws Exception
Exception - if any error occurs while loading the providers.
public TypedProperties convertJPPFConfiguration(String profileName,
TypedProperties configuration)
profileName - - the name of the profile to extract.configuration - - the JPPF configuration to extract from.
TypedProperties instance containing only the profile-specific parameters.
public TypedProperties extractJPPFConfiguration(String profileName,
TypedProperties configuration)
profileName - - the name of the profile to extract.configuration - - the JPPF configuration to extract from.
TypedProperties instance containing only the profile-specific parameters.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||