DseLoadBalancingPolicy Class |
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.
Namespace: Dse.Policies
public class DseLoadBalancingPolicy : ILoadBalancingPolicy
The DseLoadBalancingPolicy type exposes the following members.
Name | Description | |
---|---|---|
DseLoadBalancingPolicy(ILoadBalancingPolicy) |
Creates a new instance of DseLoadBalancingPolicy wrapping the provided child policy.
| |
DseLoadBalancingPolicy(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.
|
Name | Description | |
---|---|---|
CreateDefault |
Creates the default load balancing policy, using
DefaultLoadBalancingPolicy as child policy.
| |
Distance |
Returns the distance as determined by the child policy.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Initializes the policy.
| |
NewQueryPlan |
Returns the hosts to used for a query.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |