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,
NetworkAddress origin) |
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 |
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, wait
hasFastForwardMap, rev, tainted, type
protected AbstractBucketConfig(String uuid, String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, NetworkAddress origin)
public String uuid()
BucketConfig
Returns the UUID of the bucket, or null
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 BucketConfig
null
.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 String useAlternateNetwork()
BucketConfig
Non null if alternate addresses should be used, false otherwise.
useAlternateNetwork
in interface BucketConfig
public void useAlternateNetwork(String useAlternateNetwork)
BucketConfig
Setter to set if external networking should be used or not.
useAlternateNetwork
in interface BucketConfig
useAlternateNetwork
- if an alternate network should be used.public 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.