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
  Dse.PoliciesDseLoadBalancingPolicy

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

The DseLoadBalancingPolicy type exposes the following members.

Constructors
  NameDescription
Public methodDseLoadBalancingPolicy(ILoadBalancingPolicy)
Creates a new instance of DseLoadBalancingPolicy wrapping the provided child policy.
Public methodDseLoadBalancingPolicy(String, Int32)
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 methodDistance
Returns the distance as determined by the child policy.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initializes the policy.
Public methodNewQueryPlan
Returns the hosts to used for a query.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also