Package com.couchbase.client.core.config
Class ClusterConfig
java.lang.Object
com.couchbase.client.core.config.ClusterConfig
The
ClusterConfig holds bucket and global configurations in a central place.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketConfig(String bucketName) bucketTopology(String bucketName) bucketTopologyRevision(String bucketName) Returns the current cluster capabilities.booleancontains(ServiceType service, HostAndPort address) voiddeleteBucketConfig(String bucketName) voidbooleanvoidsetBucketConfig(ClusterTopologyWithBucket topology) voidsetGlobalConfig(ClusterTopology config) toString()
-
Constructor Details
-
ClusterConfig
public ClusterConfig()Creates a newClusterConfig.
-
-
Method Details
-
bucketNames
-
bucketTopology
-
bucketTopologies
-
globalTopology
-
globalTopologyRevision
-
bucketTopologyRevision
-
bucketConfig
-
setBucketConfig
-
deleteBucketConfig
-
bucketConfigs
-
globalConfig
-
setGlobalConfig
-
deleteGlobalConfig
-
hasClusterOrBucketConfig
public boolean hasClusterOrBucketConfig() -
contains
-
toString
-
clusterCapabilities
Returns the current cluster capabilities.Takes the capabilities from the global config if present, otherwise from the first bucket config available. Returns an empty map if there are no configs.
-