Class DcpBucketConfig

java.lang.Object
com.couchbase.client.dcp.buffer.DcpBucketConfig

public class DcpBucketConfig extends Object
A wrapper around a ClusterConfig that exposes just the bits the DCP client cares about.
  • Constructor Details

  • Method Details

    • rev

      public ConfigRevision rev()
    • numberOfPartitions

      public int numberOfPartitions()
    • nodes

      public List<NodeInfo> nodes()
    • getHostedPartitions

      public List<com.couchbase.client.dcp.buffer.PartitionInstance> getHostedPartitions(com.couchbase.client.core.util.HostAndPort nodeAddress) throws NoSuchElementException
      Throws:
      NoSuchElementException
    • getKvNodes

      public List<NodeInfo> 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

      public List<com.couchbase.client.dcp.buffer.PartitionInstance> getAbsentPartitionInstances()
    • getAddress

      public com.couchbase.client.core.util.HostAndPort getAddress(NodeInfo node)
    • numberOfReplicas

      public int numberOfReplicas()
    • hasCapability

      public boolean hasCapability(BucketCapability capability)