public enum

ReplicationStrategy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.mulesoft.mule.cassandradb.ReplicationStrategy

Class Overview

Cassandra supported replica placement strategies

Summary

Enum Values
ReplicationStrategy  NETWORK_TOPOLOGY  With NetworkTopologyStrategy, for each datacenter, you can specify how many replicas you want on a per-keyspace basis. 
ReplicationStrategy  OLD_NETWORK_TOPOLOGY  OldNetworkToplogyStrategy [formerly RackAwareStrategy] places one replica in each of two datacenters, and the third on a different rack in in the first. 
ReplicationStrategy  SIMPLE  SimpleStrategy merely places the first replica at the node whose token is closest to the key (as determined by the Partitioner), and additional replicas on subsequent nodes along the ring in increasing Token order. 
[Expand]
Inherited Fields
From class java.lang.Enum
Public Methods
static ReplicationStrategy valueOf(String name)
final static ReplicationStrategy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ReplicationStrategy NETWORK_TOPOLOGY

With NetworkTopologyStrategy, for each datacenter, you can specify how many replicas you want on a per-keyspace basis. Replicas are placed on different racks within each DC, if possible. Supports strategy options which specify the replication factor for each datacenter. The replication factor for the entire cluster is the sum of all per datacenter values. Note that the datacenter names must match those used in conf/cassandra-topology.properties.

public static final ReplicationStrategy OLD_NETWORK_TOPOLOGY

OldNetworkToplogyStrategy [formerly RackAwareStrategy] places one replica in each of two datacenters, and the third on a different rack in in the first. Additional datacenters are not guaranteed to get a replica. Additional replicas after three are placed in ring order after the third without regard to rack or datacenter. Supports a single strategy option 'replication_factor' that specifies the replication factor for the cluster.

public static final ReplicationStrategy SIMPLE

SimpleStrategy merely places the first replica at the node whose token is closest to the key (as determined by the Partitioner), and additional replicas on subsequent nodes along the ring in increasing Token order. Supports a single strategy option 'replication_factor' that specifies the replication factor for the cluster.

Public Methods

public static ReplicationStrategy valueOf (String name)

Parameters
name

public static final ReplicationStrategy[] values ()