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 cluster nodes currently hosting 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 cluster nodes currently hosting this bucket.During rebalance, this might be a subset of all nodes in the cluster.
- Specified by:
nodesin interfaceBucketTopology- See Also:
-
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
-