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.
Modifier and Type | Method and Description |
---|---|
BucketConfig |
bucketConfig(java.lang.String bucketName)
Returns the
BucketConfig for the given bucket name. |
java.util.Map<java.lang.String,BucketConfig> |
bucketConfigs() |
void |
deleteBucketConfig(java.lang.String bucketName) |
boolean |
hasBucket(java.lang.String bucketName)
True if there is a bucket config with the given name, false otherwise.
|
void |
setBucketConfig(java.lang.String bucketName,
BucketConfig config)
Set a bucket config for the given bucket name.
|
BucketConfig bucketConfig(java.lang.String bucketName)
Returns the BucketConfig
for the given bucket name.
bucketName
- name of the bucket.void setBucketConfig(java.lang.String bucketName, BucketConfig config)
Set a bucket config for the given bucket name.
bucketName
- the name of the bucket.config
- the configuration associated with the bucket.void deleteBucketConfig(java.lang.String bucketName)
boolean hasBucket(java.lang.String bucketName)
True if there is a bucket config with the given name, false otherwise.
bucketName
- name of the bucket.java.util.Map<java.lang.String,BucketConfig> bucketConfigs()