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, aClusterConfig
has 0 to NBucketConfig
s associated with it.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
bucketConfig
BucketConfig bucketConfig(String bucketName)
Returns theBucketConfig
for the given bucket name.- Parameters:
bucketName
- name of the bucket.- Returns:
- a config, if set.
-
setBucketConfig
void setBucketConfig(String bucketName, BucketConfig config)
Set a bucket config for the given bucket name.- Parameters:
bucketName
- the name of the bucket.config
- the configuration associated with the bucket.
-
deleteBucketConfig
void deleteBucketConfig(String bucketName)
-
hasBucket
boolean hasBucket(String bucketName)
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()
-
-