Class ClusterConfig

  • public class ClusterConfig
    extends Object
    The ClusterConfig holds bucket and global configurations in a central place.
    • Constructor Detail

      • ClusterConfig

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

      • deleteBucketConfig

        public void deleteBucketConfig​(String bucketName)
      • deleteGlobalConfig

        public void deleteGlobalConfig()
      • hasClusterOrBucketConfig

        public boolean hasClusterOrBucketConfig()
      • 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?).