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,
Map<String,Set<ClusterCapabilities>> clusterCapabilities) |
Modifier and Type | Method and Description |
---|---|
Set<BucketCapabilities> |
bucketCapabilities()
Returns all the capabilities that are enabled and recognized on this bucket.
|
Map<ServiceType,Set<ClusterCapabilities>> |
clusterCapabilities()
Returns the cluster capabilities reported by the server.
|
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.
|
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 |
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, String origin, Map<String,Set<ClusterCapabilities>> clusterCapabilities)
public String uuid()
BucketConfig
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
name
in interface BucketConfig
public BucketNodeLocator locator()
BucketConfig
locator
in interface BucketConfig
public String uri()
BucketConfig
uri
in interface BucketConfig
public String streamingUri()
BucketConfig
streamingUri
in interface BucketConfig
public List<NodeInfo> nodes()
BucketConfig
nodes
in interface BucketConfig
public boolean serviceEnabled(ServiceType type)
BucketConfig
serviceEnabled
in interface BucketConfig
type
- the type to check.public Map<ServiceType,Set<ClusterCapabilities>> clusterCapabilities()
BucketConfig
clusterCapabilities
in interface BucketConfig
public Set<BucketCapabilities> bucketCapabilities()
BucketConfig
bucketCapabilities
in interface BucketConfig
Copyright © 2020 Couchbase, Inc.. All rights reserved.