Class CouchbaseBucketTopology
java.lang.Object
com.couchbase.client.core.topology.CouchbaseBucketTopology
- All Implemented Interfaces:
BucketTopology
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseBucketTopology(String name, String uuid, Set<BucketCapability> capabilities, List<HostAndServicePorts> nodes, boolean ephemeral, int replicas, PartitionMap partitions, @Nullable PartitionMap partitionsForward) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanname()Returns the name of the bucket.intnodeIndexForActive(int partition, boolean forward) Deprecated.intnodeIndexForReplica(int partition, int replica, boolean forward) Deprecated.nodes()Returns the subset of cluster nodes that are ready to service requests for this bucket.intinttoString()uuid()Returns the UUID of the bucket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.couchbase.client.core.topology.BucketTopology
hasCapability
-
Constructor Details
-
CouchbaseBucketTopology
public CouchbaseBucketTopology(String name, String uuid, Set<BucketCapability> capabilities, List<HostAndServicePorts> nodes, boolean ephemeral, int replicas, PartitionMap partitions, @Nullable PartitionMap partitionsForward)
-
-
Method Details
-
ephemeral
public boolean ephemeral() -
numberOfPartitions
public int numberOfPartitions() -
numberOfReplicas
public int numberOfReplicas() -
partitions
-
partitionsForward
-
hasPrimaryPartitionsOnNode
-
nodeIndexForActive
Deprecated. -
nodeIndexForReplica
Deprecated. -
toString
-
nodes
Description copied from interface:BucketTopologyReturns the subset of cluster nodes that are ready to service requests for this bucket.This method is a candidate for eventual removal, since it's used only by unit tests and the code that converts a BucketTopology to a legacy
BucketConfig.- Specified by:
nodesin interfaceBucketTopology
-
name
Description copied from interface:BucketTopologyReturns the name of the bucket.- Specified by:
namein interfaceBucketTopology
-
uuid
Description copied from interface:BucketTopologyReturns the UUID of the bucket.The UUID is an opaque value assigned when the bucket is created. If the bucket is deleted and a new bucket is created with the same name, the new bucket will have a different UUID.
- Specified by:
uuidin interfaceBucketTopology
-
capabilities
- Specified by:
capabilitiesin interfaceBucketTopology
-