Class ClusterConfig


  • public class ClusterConfig
    extends Object
    • Constructor Detail

      • ClusterConfig

        public ClusterConfig()
        Creates a new ClusterConfig.
    • Method Detail

      • setBucketConfig

        public void setBucketConfig​(BucketConfig config)
      • deleteBucketConfig

        public void deleteBucketConfig​(String bucketName)
      • hasBucket

        public boolean hasBucket​(String bucketName)
      • allNodeAddresses

        public Set<String> allNodeAddresses()
      • clusterCapabilities

        public Map<ServiceType,​Set<ClusterCapabilities>> clusterCapabilities()
        Returns the current cluster capabilities.

        Right now this needs at least one bucket open, and it grabs the capabilities from the first bucket config available. If needed, in the future this can be made more intelligent (caching?).