public abstract class AbstractBucketConfig extends Object implements BucketConfig
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBucketConfig(String name,
BucketNodeLocator locator,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities) |
| Modifier and Type | Method and Description |
|---|---|
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 |
username()
User authorized for the bucket access.
|
BucketConfig |
username(String username)
Set user authorized for the bucket access.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFastForwardMap, rev, tainted, typeprotected AbstractBucketConfig(String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities)
public String name()
BucketConfigThe name of the bucket.
name in interface BucketConfigpublic BucketNodeLocator locator()
BucketConfigThe type of node locator in use for this bucket.
locator in interface BucketConfigpublic String uri()
BucketConfigThe HTTP Uri for this bucket configuration.
uri in interface BucketConfigpublic String streamingUri()
BucketConfigThe HTTP Streaming URI for this bucket.
streamingUri in interface BucketConfigpublic List<NodeInfo> nodes()
BucketConfigThe list of nodes associated with this bucket.
nodes in interface BucketConfigpublic String password()
BucketConfigThe password of the bucket/user.
password in interface BucketConfigpublic BucketConfig password(String password)
BucketConfigSetter to inject the password manually into the config.
password in interface BucketConfigpassword - the password of the bucket/user to inject.public String username()
BucketConfigUser authorized for the bucket access.
username in interface BucketConfigpublic BucketConfig username(String username)
BucketConfigSet user authorized for the bucket access.
username in interface BucketConfigusername - the user authorized for bucket accesspublic boolean serviceEnabled(ServiceType type)
BucketConfigCheck if the service is enabled on the bucket.
serviceEnabled in interface BucketConfigtype - the type to check.Copyright © 2017 Couchbase, Inc.. All rights reserved.