Package com.couchbase.client.core.config
Interface ClusterConfig
- All Known Implementing Classes:
DefaultClusterConfig
public interface ClusterConfig
Represents a Couchbase Cluster Configuration.
Depending on what buckets are used, a
ClusterConfig
has 0 to N BucketConfig
s associated with it.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
Method Summary
Modifier and Type Method Description Set<String>
allNodeAddresses()
Returns the addresses of all nodes in the cluster, accumulated from all open buckets.BucketConfig
bucketConfig(String bucketName)
Returns theBucketConfig
for the given bucket name.Map<String,BucketConfig>
bucketConfigs()
void
deleteBucketConfig(String bucketName)
boolean
hasBucket(String bucketName)
True if there is a bucket config with the given name, false otherwise.void
setBucketConfig(String bucketName, BucketConfig config)
Set a bucket config for the given bucket name.
-
Method Details
-
bucketConfig
Returns theBucketConfig
for the given bucket name.- Parameters:
bucketName
- name of the bucket.- Returns:
- a config, if set.
-
setBucketConfig
Set a bucket config for the given bucket name.- Parameters:
bucketName
- the name of the bucket.config
- the configuration associated with the bucket.
-
deleteBucketConfig
-
hasBucket
True if there is a bucket config with the given name, false otherwise.- Parameters:
bucketName
- name of the bucket.- Returns:
- true if bucket is there.
-
bucketConfigs
Map<String,BucketConfig> bucketConfigs() -
allNodeAddresses
Returns the addresses of all nodes in the cluster, accumulated from all open buckets.
-