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(String bucketName)
Returns the
BucketConfig 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.
|
BucketConfig bucketConfig(String bucketName)
Returns the BucketConfig
for the given bucket name.
bucketName
- name of the bucket.void setBucketConfig(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(String bucketName)
boolean hasBucket(String bucketName)
True if there is a bucket config with the given name, false otherwise.
bucketName
- name of the bucket.Map<String,BucketConfig> bucketConfigs()
Copyright © 2016 Couchbase, Inc.. All rights reserved.