Class AdaptiveLoadBalancingPolicy

java.lang.Object
com.zeroc.Ice.Value
com.zeroc.IceGrid.LoadBalancingPolicy
com.zeroc.IceGrid.AdaptiveLoadBalancingPolicy
All Implemented Interfaces:
Serializable, Cloneable

public class AdaptiveLoadBalancingPolicy extends LoadBalancingPolicy
The load balancing policy that returns the endpoints of the server(s) with the lowest load average.
See Also:
  • Field Details

    • loadSample

      public String loadSample
      The load sample to use for the load balancing. The allowed values for this attribute are "1", "5" and "15", representing respectively the load average over the past minute, the past 5 minutes and the past 15 minutes.
  • Constructor Details

    • AdaptiveLoadBalancingPolicy

      public AdaptiveLoadBalancingPolicy()
      Constructs a AdaptiveLoadBalancingPolicy.
    • AdaptiveLoadBalancingPolicy

      public AdaptiveLoadBalancingPolicy(String nReplicas, String loadSample)
      Constructs a AdaptiveLoadBalancingPolicy with values for all its fields.
      Parameters:
      nReplicas - The number of replicas that will be used to gather the endpoints of a replica group.
      loadSample - The load sample to use for the load balancing.
  • Method Details

    • clone

      Description copied from class: Value
      Returns a copy of the object. The cloned object contains field-for-field copies of the state.
      Overrides:
      clone in class LoadBalancingPolicy
      Returns:
      The cloned object.
    • ice_staticId

      public static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::AdaptiveLoadBalancingPolicy"
    • ice_id

      public String ice_id()
      Returns the Slice type ID of the most-derived interface supported by this object.
      Overrides:
      ice_id in class LoadBalancingPolicy
      Returns:
      The return value is always ::Ice::Object.