Package com.couchbase.client.dcp.buffer
Class DcpBucketConfig
java.lang.Object
com.couchbase.client.dcp.buffer.DcpBucketConfig
A wrapper around a
CouchbaseBucketConfig that automatically resolves alternate addresses
and analyzes the partition map to support persistence polling.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.couchbase.client.dcp.buffer.PartitionInstance>getActiveNodeKvAddress(int partition) getAddress(NodeInfo node) List<com.couchbase.client.dcp.buffer.PartitionInstance>getHostedPartitions(HostAndPort nodeAddress) Returns an unmodifiable list containing only those nodes that are running the KV service.intgetNodeIndex(HostAndPort nodeAddress) nodes()intintrev()
-
Constructor Details
-
DcpBucketConfig
-
-
Method Details
-
rev
-
numberOfPartitions
public int numberOfPartitions() -
nodes
-
getHostedPartitions
public List<com.couchbase.client.dcp.buffer.PartitionInstance> getHostedPartitions(HostAndPort nodeAddress) throws NoSuchElementException - Throws:
NoSuchElementException
-
getKvNodes
Returns an unmodifiable list containing only those nodes that are running the KV service. -
getNodeIndex
- Throws:
NoSuchElementException
-
getActiveNodeKvAddress
-
getAbsentPartitionInstances
-
getAddress
-
numberOfReplicas
public int numberOfReplicas()
-