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) |
| 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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrev, tainted, typepublic 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.
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 to inject.public boolean serviceEnabled(ServiceType type)
BucketConfigCheck if the service is enabled on the bucket.
serviceEnabled in interface BucketConfigtype - the type to check.Copyright © 2016 Couchbase, Inc.. All rights reserved.