Package org.jppf.load.balancer
Class LoadBalancingInformation
java.lang.Object
org.jppf.load.balancer.LoadBalancingInformation
- All Implemented Interfaces:
Serializable
Information on the load-balancing algorithm currently setup in the driver.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoadBalancingInformation(String algorithm, TypedProperties parameters) Initialize this load balancing information with the specified algorithm and parameters.LoadBalancingInformation(String algorithm, TypedProperties parameters, List<String> algorithmNames) Initialize this load balancing information with the specified algorithm and parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the algorithm.The names of all available algorithms.Get the algorithm's parameters.toString()
-
Constructor Details
-
LoadBalancingInformation
Initialize this load balancing information with the specified algorithm and parameters.- Parameters:
algorithm- the name of the algorithm.parameters- the algorithm's parameters.
-
LoadBalancingInformation
public LoadBalancingInformation(String algorithm, TypedProperties parameters, List<String> algorithmNames) Initialize this load balancing information with the specified algorithm and parameters.- Parameters:
algorithm- the name of the algorithm.parameters- the algorithm's parameters.algorithmNames- the names of all available algorithms.
-
-
Method Details
-
getAlgorithm
Get the name of the algorithm.- Returns:
- the algorithm name as a string.
-
getParameters
Get the algorithm's parameters.- Returns:
- the parameters as a set of (name, value) pairs.
-
getAlgorithmNames
The names of all available algorithms.- Returns:
- a list of all available algorithm names.
-
toString
-