public class GlobalConfig extends Object
GlobalConfig
represents a configuration which is not tied to a bucket.
This type of config has been introduced in couchbase server 6.5 (and forward) and allows cluster-level operations without having a bucket open (and as a result fetch a bucket config). It only contains a subset of what can be found in a bucket config, since it contains only what necessary to locate cluster-level features and capabilities.
Constructor and Description |
---|
GlobalConfig(long rev,
long revEpoch,
List<PortInfo> portInfos,
Map<String,Set<ClusterCapabilities>> clusterCapabilities,
String origin) |
Modifier and Type | Method and Description |
---|---|
Map<ServiceType,Set<ClusterCapabilities>> |
clusterCapabilities()
All global cluster capabilities.
|
List<PortInfo> |
portInfos()
The node/port infos for each node in the list.
|
long |
rev()
Deprecated.
Please use
version() instead. |
long |
revEpoch()
Deprecated.
Please use
version() instead. |
String |
toString() |
ConfigVersion |
version() |
@Deprecated public long rev()
version()
instead.@Deprecated public long revEpoch()
version()
instead.public ConfigVersion version()
public Map<ServiceType,Set<ClusterCapabilities>> clusterCapabilities()
Copyright © 2024 Couchbase, Inc.. All rights reserved.