public class DefaultClusterConfig extends Object implements ClusterConfig
Default implementation of a ClusterConfig.
| Constructor and Description |
|---|
DefaultClusterConfig()
Creates a new
DefaultClusterConfig. |
| 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.
|
public DefaultClusterConfig()
Creates a new DefaultClusterConfig.
public BucketConfig bucketConfig(String bucketName)
ClusterConfigReturns the BucketConfig for the given bucket name.
bucketConfig in interface ClusterConfigbucketName - name of the bucket.public void setBucketConfig(String bucketName, BucketConfig config)
ClusterConfigSet a bucket config for the given bucket name.
setBucketConfig in interface ClusterConfigbucketName - the name of the bucket.config - the configuration associated with the bucket.public void deleteBucketConfig(String bucketName)
deleteBucketConfig in interface ClusterConfigpublic boolean hasBucket(String bucketName)
ClusterConfigTrue if there is a bucket config with the given name, false otherwise.
hasBucket in interface ClusterConfigbucketName - name of the bucket.public Map<String,BucketConfig> bucketConfigs()
bucketConfigs in interface ClusterConfigCopyright © 2016 Couchbase, Inc.. All rights reserved.