Package com.couchbase.client.core.config
Class ClusterConfig
java.lang.Object
com.couchbase.client.core.config.ClusterConfig
public class ClusterConfig extends Object
The
ClusterConfig holds bucket and global configurations in a central place.-
Constructor Summary
Constructors Constructor Description ClusterConfig()Creates a newClusterConfig. -
Method Summary
Modifier and Type Method Description Set<String>allNodeAddresses()BucketConfigbucketConfig(String bucketName)Map<String,BucketConfig>bucketConfigs()Map<ServiceType,Set<ClusterCapabilities>>clusterCapabilities()Returns the current cluster capabilities.voiddeleteBucketConfig(String bucketName)voiddeleteGlobalConfig()GlobalConfigglobalConfig()booleanhasClusterOrBucketConfig()voidsetBucketConfig(BucketConfig config)voidsetGlobalConfig(GlobalConfig config)StringtoString()
-
Constructor Details
-
ClusterConfig
public ClusterConfig()Creates a newClusterConfig.
-
-
Method Details
-
bucketConfig
-
setBucketConfig
-
deleteBucketConfig
-
bucketConfigs
-
globalConfig
-
setGlobalConfig
-
deleteGlobalConfig
-
hasClusterOrBucketConfig
public boolean hasClusterOrBucketConfig() -
allNodeAddresses
-
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?).
-