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.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?).
-