public class DcpBucketConfig extends Object
CouchbaseBucketConfig that automatically resolves alternate addresses
and analyzes the partition map to support persistence polling.| Constructor and Description |
|---|
DcpBucketConfig(CouchbaseBucketConfig config,
boolean sslEnabled) |
| Modifier and Type | Method and Description |
|---|---|
List<com.couchbase.client.dcp.buffer.PartitionInstance> |
getAbsentPartitionInstances() |
HostAndPort |
getActiveNodeKvAddress(int partition) |
HostAndPort |
getAddress(NodeInfo node) |
List<NodeInfo> |
getDataNodes()
Returns an unmodifiable list containing only those nodes that are running the KV service.
|
List<com.couchbase.client.dcp.buffer.PartitionInstance> |
getHostedPartitions(HostAndPort nodeAddress) |
int |
getNodeIndex(HostAndPort nodeAddress) |
List<NodeInfo> |
nodes() |
int |
numberOfPartitions() |
int |
numberOfReplicas() |
BucketConfigRevision |
rev() |
public DcpBucketConfig(CouchbaseBucketConfig config, boolean sslEnabled)
public BucketConfigRevision rev()
public int numberOfPartitions()
public List<com.couchbase.client.dcp.buffer.PartitionInstance> getHostedPartitions(HostAndPort nodeAddress) throws NoSuchElementException
NoSuchElementExceptionpublic List<NodeInfo> getDataNodes()
public int getNodeIndex(HostAndPort nodeAddress) throws NoSuchElementException
NoSuchElementExceptionpublic HostAndPort getActiveNodeKvAddress(int partition)
public List<com.couchbase.client.dcp.buffer.PartitionInstance> getAbsentPartitionInstances()
public HostAndPort getAddress(NodeInfo node)
public int numberOfReplicas()
Copyright © 2021 Couchbase, Inc.. All rights reserved.