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, wait
hasFastForwardMap, rev, tainted, type
protected AbstractBucketConfig(String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities)
public String name()
BucketConfig
The name of the bucket.
name
in interface BucketConfig
public BucketNodeLocator locator()
BucketConfig
The type of node locator in use for this bucket.
locator
in interface BucketConfig
public String uri()
BucketConfig
The HTTP Uri for this bucket configuration.
uri
in interface BucketConfig
public String streamingUri()
BucketConfig
The HTTP Streaming URI for this bucket.
streamingUri
in interface BucketConfig
public List<NodeInfo> nodes()
BucketConfig
The list of nodes associated with this bucket.
nodes
in interface BucketConfig
public String password()
BucketConfig
The password of the bucket/user.
password
in interface BucketConfig
public BucketConfig password(String password)
BucketConfig
Setter to inject the password manually into the config.
password
in interface BucketConfig
password
- the password of the bucket/user to inject.public String username()
BucketConfig
User authorized for the bucket access.
username
in interface BucketConfig
public BucketConfig username(String username)
BucketConfig
Set user authorized for the bucket access.
username
in interface BucketConfig
username
- the user authorized for bucket accesspublic boolean serviceEnabled(ServiceType type)
BucketConfig
Check if the service is enabled on the bucket.
serviceEnabled
in interface BucketConfig
type
- the type to check.Copyright © 2018 Couchbase, Inc.. All rights reserved.