Package com.couchbase.client.dcp.buffer
Class DcpBucketConfig
java.lang.Object
com.couchbase.client.dcp.buffer.DcpBucketConfig
A wrapper around a
ClusterConfig that exposes just the bits the DCP client cares about.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.couchbase.client.dcp.buffer.PartitionInstance>com.couchbase.client.core.util.HostAndPortgetActiveNodeKvAddress(int partition) com.couchbase.client.core.util.HostAndPortgetAddress(NodeInfo node) List<com.couchbase.client.dcp.buffer.PartitionInstance>getHostedPartitions(com.couchbase.client.core.util.HostAndPort nodeAddress) Returns an unmodifiable list containing only those nodes that are running the KV service.intgetNodeIndex(com.couchbase.client.core.util.HostAndPort nodeAddress) booleanhasCapability(BucketCapability capability) nodes()intintrev()
-
Constructor Details
-
DcpBucketConfig
-
-
Method Details
-
rev
-
numberOfPartitions
public int numberOfPartitions() -
nodes
-
getHostedPartitions
public List<com.couchbase.client.dcp.buffer.PartitionInstance> getHostedPartitions(com.couchbase.client.core.util.HostAndPort nodeAddress) throws NoSuchElementException - Throws:
NoSuchElementException
-
getKvNodes
Returns an unmodifiable list containing only those nodes that are running the KV service. -
getNodeIndex
public int getNodeIndex(com.couchbase.client.core.util.HostAndPort nodeAddress) throws NoSuchElementException - Throws:
NoSuchElementException
-
getActiveNodeKvAddress
public com.couchbase.client.core.util.HostAndPort getActiveNodeKvAddress(int partition) -
getAbsentPartitionInstances
-
getAddress
-
numberOfReplicas
public int numberOfReplicas() -
hasCapability
-