Method | Description | |
---|---|---|
CreateDefault ( ) : |
Creates the default load balancing policy, using Cassandra.Policies.DefaultLoadBalancingPolicy as child policy.
|
|
Distance ( Cassandra.Host host ) : HostDistance |
Returns the distance as determined by the child policy.
|
|
DseLoadBalancingPolicy ( ILoadBalancingPolicy childPolicy ) : System |
Creates a new instance of DseLoadBalancingPolicy wrapping the provided child policy.
|
|
DseLoadBalancingPolicy ( string localDc, int usedHostsPerRemoteDc ) : System |
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.
|
|
Initialize ( ICluster cluster ) : void |
Initializes the policy.
|
|
NewQueryPlan ( string keyspace, IStatement statement ) : IEnumerable |
Returns the hosts to used for a query.
|
Method | Description | |
---|---|---|
YieldPreferred ( string keyspace, TargettedSimpleStatement statement ) : IEnumerable |
public static CreateDefault ( ) : |
||
return |
public Distance ( Cassandra.Host host ) : HostDistance | ||
host | Cassandra.Host | |
return | HostDistance |
public DseLoadBalancingPolicy ( ILoadBalancingPolicy childPolicy ) : System | ||
childPolicy | ILoadBalancingPolicy | |
return | System |
public DseLoadBalancingPolicy ( string localDc, int usedHostsPerRemoteDc ) : System | ||
localDc | string | The name of the local datacenter (case-sensitive) |
usedHostsPerRemoteDc | int | /// The amount of host per remote datacenter that the policy should yield in a new query plan after the local /// nodes. /// |
return | System |
public Initialize ( ICluster cluster ) : void | ||
cluster | ICluster | |
return | void |
public NewQueryPlan ( string keyspace, IStatement statement ) : IEnumerable |
||
keyspace | string | |
statement | IStatement | |
return | IEnumerable |