Class CouchbaseBucketTopology
java.lang.Object
com.couchbase.client.core.topology.CouchbaseBucketTopology
- All Implemented Interfaces:
BucketTopology
-
Constructor Summary
ConstructorDescriptionCouchbaseBucketTopology
(String name, String uuid, Set<BucketCapability> capabilities, List<HostAndServicePorts> nodes, boolean ephemeral, int replicas, PartitionMap partitions, PartitionMap partitionsForward) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
name()
Returns the name of the bucket.int
nodeIndexForActive
(int partition, boolean forward) Deprecated.int
nodeIndexForReplica
(int partition, int replica, boolean forward) Deprecated.nodes()
Returns the subset of cluster nodes that are ready to service requests for this bucket.int
int
toString()
uuid()
Returns the UUID of the bucket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:BucketTopology
Returns 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:
nodes
in interfaceBucketTopology
-
name
Description copied from interface:BucketTopology
Returns the name of the bucket.- Specified by:
name
in interfaceBucketTopology
-
uuid
Description copied from interface:BucketTopology
Returns 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:
uuid
in interfaceBucketTopology
-
capabilities
- Specified by:
capabilities
in interfaceBucketTopology
-