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
-
Method Summary
Modifier and TypeMethodDescriptionDynamically aggregates all node addresses from global and bucket configs into a set (no duplicates).bucketConfig
(String bucketName) bucketTopology
(String bucketName) Returns the current cluster capabilities.void
deleteBucketConfig
(String bucketName) void
boolean
void
setBucketConfig
(BucketConfig config) void
setGlobalConfig
(GlobalConfig config) toString()
-
Constructor Details
-
ClusterConfig
public ClusterConfig()Creates a newClusterConfig
.
-
-
Method Details
-
bucketNames
-
bucketTopology
-
bucketTopologies
-
globalTopology
-
bucketConfig
-
setBucketConfig
-
deleteBucketConfig
-
bucketConfigs
-
globalConfig
-
setGlobalConfig
-
deleteGlobalConfig
-
hasClusterOrBucketConfig
public boolean hasClusterOrBucketConfig() -
allNodeAddresses
Dynamically aggregates all node addresses from global and bucket configs into a set (no duplicates).- Returns:
- all node addresses found in global and bucket configs without duplicates.
-
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?).
-