Package org.apache.cassandra.locator
Class Replicas
java.lang.Object
org.apache.cassandra.locator.Replicas
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToCountPerDc(com.carrotsearch.hppc.ObjectIntHashMap<String> perDc, Iterable<Replica> replicas, int add) increment each of the map's DC entries for each matching replica providedstatic voidassertFull(Iterable<Replica> replicas) For areas of the code that should never see a transient replicastatic intcountFull(ReplicaCollection<?> replicas) static Replicas.ReplicaCountcountInOurDc(ReplicaCollection<?> replicas) static com.carrotsearch.hppc.ObjectObjectHashMap<String,Replicas.ReplicaCount> countPerDc(Collection<String> dataCenters, Iterable<Replica> replicas) count the number of full and transient replicas, separately, for each DCstringify(ReplicaCollection<?> replicas, boolean withPort) static voidtemporaryAssertFull(Iterable<Replica> replicas) A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in futurestatic voidtemporaryAssertFull(Replica replica) A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in future
-
Constructor Details
-
Replicas
public Replicas()
-
-
Method Details
-
countFull
-
countInOurDc
-
countPerDc
public static com.carrotsearch.hppc.ObjectObjectHashMap<String,Replicas.ReplicaCount> countPerDc(Collection<String> dataCenters, Iterable<Replica> replicas) count the number of full and transient replicas, separately, for each DC -
addToCountPerDc
public static void addToCountPerDc(com.carrotsearch.hppc.ObjectIntHashMap<String> perDc, Iterable<Replica> replicas, int add) increment each of the map's DC entries for each matching replica provided -
temporaryAssertFull
A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in future -
temporaryAssertFull
A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in future -
assertFull
For areas of the code that should never see a transient replica -
stringify
-