Class AbstractBucketConfig
- All Implemented Interfaces:
BucketConfig
- Direct Known Subclasses:
CouchbaseBucketConfig,MemcachedBucketConfig
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBucketConfig(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, long rev, long revEpoch) Deprecated.protectedAbstractBucketConfig(String uuid, String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfo, Set<BucketCapabilities> bucketCapabilities, Map<ServiceType, Set<ClusterCapabilities>> clusterCapabilities, String origin, List<PortInfo> portInfos, ConfigVersion version, ClusterTopologyWithBucket clusterTopology) Deprecated.A "dumb" constructor that assigns the given values directly to the corresponding fields, without any funny business. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Returns all the capabilities that are enabled and recognized on this bucket.Deprecated.Returns the cluster capabilities reported by the server.locator()Deprecated.The type of node locator in use for this bucket.name()Deprecated.The name of the bucket.nodes()Deprecated.The list of nodes associated with this bucket.Deprecated.Returns the port information from the "nodesExt" section.longrev()Deprecated.Revision number (optional) for that configuration.longrevEpoch()Deprecated.This field serves to enable the server to provide higher-level guidance with regards to configuration priority.booleanserviceEnabled(ServiceType type) Deprecated.Check if the service is enabled on the bucket.Deprecated.The HTTP Streaming URI for this bucket.uri()Deprecated.The HTTP Uri for this bucket configuration.uuid()Deprecated.Returns the UUID of the bucket, ornullif the bucket does not have a UUID.version()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.couchbase.client.core.config.BucketConfig
hasFastForwardMap, tainted, type
-
Constructor Details
-
AbstractBucketConfig
protected AbstractBucketConfig(String uuid, String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfo, Set<BucketCapabilities> bucketCapabilities, Map<ServiceType, Set<ClusterCapabilities>> clusterCapabilities, String origin, List<PortInfo> portInfos, ConfigVersion version, ClusterTopologyWithBucket clusterTopology) Deprecated.A "dumb" constructor that assigns the given values directly to the corresponding fields, without any funny business. -
AbstractBucketConfig
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, long rev, long revEpoch) Deprecated.
-
-
Method Details
-
asClusterTopology
Deprecated.- Specified by:
asClusterTopologyin interfaceBucketConfig
-
uuid
Deprecated.Description copied from interface:BucketConfigReturns the UUID of the bucket, ornullif 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.
- Specified by:
uuidin interfaceBucketConfig- Returns:
- bucket UUID, or
null.
-
name
Deprecated.Description copied from interface:BucketConfigThe name of the bucket.- Specified by:
namein interfaceBucketConfig- Returns:
- name of the bucket.
-
locator
Deprecated.Description copied from interface:BucketConfigThe type of node locator in use for this bucket.- Specified by:
locatorin interfaceBucketConfig- Returns:
- the node locator type.
-
uri
Deprecated.Description copied from interface:BucketConfigThe HTTP Uri for this bucket configuration.- Specified by:
uriin interfaceBucketConfig- Returns:
- the uri.
-
streamingUri
Deprecated.Description copied from interface:BucketConfigThe HTTP Streaming URI for this bucket.- Specified by:
streamingUriin interfaceBucketConfig- Returns:
- the streaming uri.
-
nodes
Deprecated.Description copied from interface:BucketConfigThe list of nodes associated with this bucket.- Specified by:
nodesin interfaceBucketConfig- Returns:
- the list of nodes.
-
rev
public long rev()Deprecated.Description copied from interface:BucketConfigRevision number (optional) for that configuration.- Specified by:
revin interfaceBucketConfig- Returns:
- the rev number, might be 0.
-
revEpoch
public long revEpoch()Deprecated.Description copied from interface:BucketConfigThis field serves to enable the server to provide higher-level guidance with regards to configuration priority.This will be used during manual failovers to ensure that even if the minority side of the cluster is being selected, that consumers can keep the correct configurations.
If revEpoch is not included in the config, it is set to 0 (it starts with 1 on configs that have it).
- Specified by:
revEpochin interfaceBucketConfig
-
version
Deprecated.- Specified by:
versionin interfaceBucketConfig
-
serviceEnabled
Deprecated.Description copied from interface:BucketConfigCheck if the service is enabled on the bucket.- Specified by:
serviceEnabledin interfaceBucketConfig- Parameters:
type- the type to check.- Returns:
- true if it is, false otherwise.
-
clusterCapabilities
Deprecated.Description copied from interface:BucketConfigReturns the cluster capabilities reported by the server.- Specified by:
clusterCapabilitiesin interfaceBucketConfig
-
bucketCapabilities
Deprecated.Description copied from interface:BucketConfigReturns all the capabilities that are enabled and recognized on this bucket.- Specified by:
bucketCapabilitiesin interfaceBucketConfig
-
portInfos
Deprecated.Description copied from interface:BucketConfigReturns the port information from the "nodesExt" section.NOTE: If you are unsure if you want to use this api, very likely you want to use
BucketConfig.nodes()instead!The nodes API is very similar to this port infos (in fact, they are built from each other), but there is one big difference: when the KV and VIEW service are defined on a bucket but not yet ready, the nodes API will NOT include them in the services list, while this API will. Most of the time you do not want to consume a service until it is ready, but for some functionality (like waitUntilReady) it can be needed to "look ahead" what will become active and wait for it.
- Specified by:
portInfosin interfaceBucketConfig- Returns:
- the port infos.
-