Class LoadBalancingInformation

java.lang.Object
org.jppf.load.balancer.LoadBalancingInformation
All Implemented Interfaces:
Serializable

public class LoadBalancingInformation extends Object implements Serializable
Information on the load-balancing algorithm currently setup in the driver.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • LoadBalancingInformation

      public LoadBalancingInformation(String algorithm, TypedProperties parameters)
      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

      public String getAlgorithm()
      Get the name of the algorithm.
      Returns:
      the algorithm name as a string.
    • getParameters

      public TypedProperties getParameters()
      Get the algorithm's parameters.
      Returns:
      the parameters as a set of (name, value) pairs.
    • getAlgorithmNames

      public List<String> getAlgorithmNames()
      The names of all available algorithms.
      Returns:
      a list of all available algorithm names.
    • toString

      public String toString()
      Overrides:
      toString in class Object