Click or drag to resize
DCAwareRoundRobinPolicyDistance Method
Return the HostDistance for the provided host.

This policy consider nodes in the local datacenter as Local. For each remote datacenter, it considers a configurable number of hosts as Remote and the rest is Ignored.

To configure how many host in each remote datacenter is considered Remote.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public HostDistance Distance(
	Host host
)

Parameters

host
Type: CassandraHost
the host of which to return the distance of.

Return Value

Type: HostDistance
the HostDistance to host.

Implements

ILoadBalancingPolicyDistance(Host)
See Also