Class CouchbaseBucketConfig
java.lang.Object
com.couchbase.client.dcp.core.config.AbstractBucketConfig
com.couchbase.client.dcp.core.config.CouchbaseBucketConfig
- All Implemented Interfaces:
BucketConfig
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseBucketConfig(String name, String uuid, Set<BucketCapability> capabilities, boolean ephemeral, int replicas, PartitionMap partitions, PartitionMap partitionsForward) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanhasPrimaryPartitionsOnNode(String hostname) Deprecated.This check is not robust in a world where multiple nodes can share the same host.intnodeIndexForActive(int partition, boolean forward) Deprecated.intnodeIndexForReplica(int partition, int replica, boolean forward) Deprecated.intinttoString()Methods inherited from class com.couchbase.client.dcp.core.config.AbstractBucketConfig
capabilities, name, uuidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.couchbase.client.dcp.core.config.BucketConfig
hasCapability
-
Constructor Details
-
CouchbaseBucketConfig
public CouchbaseBucketConfig(String name, String uuid, Set<BucketCapability> capabilities, 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
Deprecated.This check is not robust in a world where multiple nodes can share the same host. A safer approach would be to consider the KV port as well. -
nodeIndexForActive
Deprecated. -
nodeIndexForReplica
Deprecated. -
toString
-