public abstract class AbstractBucketConfig extends Object implements BucketConfig
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBucketConfig(String uuid,
String name,
BucketNodeLocator locator,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities,
String origin) |
| Modifier and Type | Method and Description |
|---|---|
List<BucketCapabilities> |
capabilities()
Returns the bucket capabilities of this bucket config.
|
BucketNodeLocator |
locator()
The type of node locator in use for this bucket.
|
String |
name()
The name of the bucket.
|
List<NodeInfo> |
nodes()
The list of nodes associated with this bucket.
|
String |
password()
The password of the bucket/user.
|
BucketConfig |
password(String password)
Setter to inject the password manually into the config.
|
boolean |
serviceEnabled(ServiceType type)
Check if the service is enabled on the bucket.
|
String |
streamingUri()
The HTTP Streaming URI for this bucket.
|
String |
uri()
The HTTP Uri for this bucket configuration.
|
String |
useAlternateNetwork()
Non null if alternate addresses should be used, false otherwise.
|
void |
useAlternateNetwork(String useAlternateNetwork)
Setter to set if external networking should be used or not.
|
String |
username()
User authorized for the bucket access.
|
BucketConfig |
username(String username)
Set user authorized for the bucket access.
|
String |
uuid()
Returns the UUID of the bucket, or
null if the bucket does not have a UUID. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFastForwardMap, rev, tainted, typepublic String uuid()
BucketConfignull if the bucket does not have a UUID.
The UUID is an opaque value assigned when the bucket is created. If the bucket is deleted and a new bucket is created with the same name, the new bucket will have a different UUID.
uuid in interface BucketConfignull.public String name()
BucketConfigname in interface BucketConfigpublic BucketNodeLocator locator()
BucketConfiglocator in interface BucketConfigpublic String uri()
BucketConfiguri in interface BucketConfigpublic String streamingUri()
BucketConfigstreamingUri in interface BucketConfigpublic List<NodeInfo> nodes()
BucketConfignodes in interface BucketConfigpublic String password()
BucketConfigpassword in interface BucketConfigpublic BucketConfig password(String password)
BucketConfigpassword in interface BucketConfigpassword - the password of the bucket/user to inject.public String username()
BucketConfigusername in interface BucketConfigpublic BucketConfig username(String username)
BucketConfigusername in interface BucketConfigusername - the user authorized for bucket accesspublic String useAlternateNetwork()
BucketConfiguseAlternateNetwork in interface BucketConfigpublic void useAlternateNetwork(String useAlternateNetwork)
BucketConfiguseAlternateNetwork in interface BucketConfiguseAlternateNetwork - if an alternate network should be used.public boolean serviceEnabled(ServiceType type)
BucketConfigserviceEnabled in interface BucketConfigtype - the type to check.public List<BucketCapabilities> capabilities()
BucketConfigcapabilities in interface BucketConfigCopyright © 2021 Couchbase, Inc.. All rights reserved.