Class CouchbaseBucketConfig

    • Field Detail

    • Method Detail

      • numberOfReplicas

        public int numberOfReplicas()
      • tainted

        public boolean tainted()
        Description copied from interface: BucketConfig
        Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).
        Returns:
        true if a transition is in progress.
      • hasPrimaryPartitionsOnNode

        public boolean hasPrimaryPartitionsOnNode​(String hostname)
      • nodeIndexForActive

        public short nodeIndexForActive​(int partition,
                                        boolean useFastForward)
      • nodeIndexForReplica

        public short nodeIndexForReplica​(int partition,
                                         int replica,
                                         boolean useFastForward)
      • numberOfPartitions

        public int numberOfPartitions()
      • nodeAtIndex

        public NodeInfo nodeAtIndex​(int nodeIndex)
      • rev

        public long rev()
        Description copied from interface: BucketConfig
        Revision number (optional) for that configuration.
        Returns:
        the rev number, might be 0.
      • type

        public BucketType type()
        Description copied from interface: BucketConfig
        The bucket type.
        Returns:
        the bucket type.
      • hasFastForwardMap

        public boolean hasFastForwardMap()
        Description copied from interface: BucketConfig
        Returns true if the config has a fast forward map that describes what the topology of the cluster will be after the current rebalance operation completes.
        Returns:
        true if it does, false otherwise.
      • ephemeral

        public boolean ephemeral()