class DseLoadBalancingPolicy
A load balancing policy designed to run against DSE cluster that provides token and datacenter awareness.
For most executions, the query plan is determined by the token and the datacenter considered local. For graph analytics queries, it uses the preferred analytics graph server previously obtained by driver as first host in the query plan.
You can use this policy to wrap a custom load-balancing policy using
DseLoadBalancingPolicy.createAsWrapper(childPolicy)
static method.
Constructor
Methods
DseLoadBalancingPolicy.createAsWrapper
(LoadBalancingPolicy
childPolicy)
Creates a new instance of DseLoadBalancingPolicy
wrapping the provided child policy.
- Static
- This function is static
getDistance
(Host
host)
Uses the child policy to return the distance to the host.
newQueryPlan
()Returns the hosts to used for a query.