Class PartitionTopology
java.lang.Object
com.couchbase.client.core.topology.PartitionTopology
Knows which nodes host the active and replicas for one partition.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionTopology
(HostAndServicePorts active, List<HostAndServicePorts> availableReplicas, List<Integer> rawNodeIndexes) -
Method Summary
Modifier and TypeMethodDescriptionactive()
nodeIndexForReplica
(int replicaIndex) static PartitionTopology
parse
(List<HostAndServicePorts> allNodes, List<Integer> partitionNodeIndexes) toString()
-
Constructor Details
-
PartitionTopology
public PartitionTopology(@Nullable HostAndServicePorts active, List<HostAndServicePorts> availableReplicas, List<Integer> rawNodeIndexes)
-
-
Method Details
-
parse
public static PartitionTopology parse(List<HostAndServicePorts> allNodes, List<Integer> partitionNodeIndexes) -
active
-
availableReplicas
-
nodeIndexForActive
-
nodeIndexForReplica
-
toString
-