Package com.couchbase.client.core.config
Class ClusterConfig
- java.lang.Object
-
- com.couchbase.client.core.config.ClusterConfig
-
public class ClusterConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description ClusterConfig()
Creates a newClusterConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
allNodeAddresses()
BucketConfig
bucketConfig(String bucketName)
Map<String,BucketConfig>
bucketConfigs()
Map<ServiceType,Set<ClusterCapabilities>>
clusterCapabilities()
Returns the current cluster capabilities.void
deleteBucketConfig(String bucketName)
boolean
hasBucket(String bucketName)
void
setBucketConfig(BucketConfig config)
String
toString()
-
-
-
Constructor Detail
-
ClusterConfig
public ClusterConfig()
Creates a newClusterConfig
.
-
-
Method Detail
-
bucketConfig
public BucketConfig bucketConfig(String bucketName)
-
setBucketConfig
public void setBucketConfig(BucketConfig config)
-
deleteBucketConfig
public void deleteBucketConfig(String bucketName)
-
hasBucket
public boolean hasBucket(String bucketName)
-
bucketConfigs
public Map<String,BucketConfig> bucketConfigs()
-
clusterCapabilities
public Map<ServiceType,Set<ClusterCapabilities>> clusterCapabilities()
Returns the current cluster capabilities.Right now this needs at least one bucket open, and it grabs the capabilities from the first bucket config available. If needed, in the future this can be made more intelligent (caching?).
-
-