Click or drag to resize

DseLoadBalancingPolicy Class

A load balancing policy designed to run against DSE cluster.

For most executions, the query plan will be determined by the child load balancing policy. Except for some cases, like graph analytics queries, for which it uses the preferred analytics graph server previously obtained by driver as first host in the query plan.

Inheritance Hierarchy
SystemObject
  DseDseLoadBalancingPolicy

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class DseLoadBalancingPolicy : ILoadBalancingPolicy

The DseLoadBalancingPolicy type exposes the following members.

Constructors
  NameDescription
Public methodDseLoadBalancingPolicy(String)
Creates a new instance of DseLoadBalancingPolicy given the name of the local datacenter.
Public methodDseLoadBalancingPolicy(ILoadBalancingPolicy)
Creates a new instance of DseLoadBalancingPolicy wrapping the provided child policy.
Public methodDseLoadBalancingPolicy(String, Int32) Obsolete.
Creates a new instance of DseLoadBalancingPolicy given the name of the local datacenter and the amount of host per remote datacenter to use for failover for the local hosts.
Top
Methods
  NameDescription
Public methodStatic memberCreateDefault
Creates the default load balancing policy, using DefaultLoadBalancingPolicy as child policy.
Public methodStatic memberCreateDefault(String)
Creates the default load balancing policy, using NewDefaultLoadBalancingPolicy(String) to create the child policy.
Public methodDistance
Returns the distance as determined by the child policy.
Public methodInitialize
Initializes the policy.
Public methodNewQueryPlan
Returns the hosts to used for a query.
Top
See Also

Reference