Class AbstractBucketConfig
java.lang.Object
com.couchbase.client.dcp.core.config.AbstractBucketConfig
- All Implemented Interfaces:
BucketConfig
- Direct Known Subclasses:
DefaultCouchbaseBucketConfig
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBucketConfig(String uuid, String name, BucketNodeLocator locator, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, String origin) -
Method Summary
Modifier and TypeMethodDescriptionReturns the bucket capabilities of this bucket config.locator()The type of node locator in use for this bucket.name()The name of the bucket.nodes()The list of nodes associated with this bucket.password()The password of the bucket/user.Setter to inject the password manually into the config.booleanserviceEnabled(ServiceType type) Check if the service is enabled on the bucket.The HTTP Streaming URI for this bucket.uri()The HTTP Uri for this bucket configuration.Non null if alternate addresses should be used, false otherwise.voiduseAlternateNetwork(String useAlternateNetwork) Setter to set if external networking should be used or not.username()User authorized for the bucket access.Set user authorized for the bucket access.uuid()Returns the UUID of the bucket, ornullif the bucket does not have a UUID.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.couchbase.client.dcp.core.config.BucketConfig
hasFastForwardMap, rev, tainted, type
-
Constructor Details
-
AbstractBucketConfig
-
-
Method Details
-
uuid
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
Description copied from interface:BucketConfigThe name of the bucket.- Specified by:
namein interfaceBucketConfig- Returns:
- name of the bucket.
-
locator
Description copied from interface:BucketConfigThe type of node locator in use for this bucket.- Specified by:
locatorin interfaceBucketConfig- Returns:
- the node locator type.
-
uri
Description copied from interface:BucketConfigThe HTTP Uri for this bucket configuration.- Specified by:
uriin interfaceBucketConfig- Returns:
- the uri.
-
streamingUri
Description copied from interface:BucketConfigThe HTTP Streaming URI for this bucket.- Specified by:
streamingUriin interfaceBucketConfig- Returns:
- the streaming uri.
-
nodes
Description copied from interface:BucketConfigThe list of nodes associated with this bucket.- Specified by:
nodesin interfaceBucketConfig- Returns:
- the list of nodes.
-
password
Description copied from interface:BucketConfigThe password of the bucket/user.- Specified by:
passwordin interfaceBucketConfig- Returns:
- the password of the bucket/user.
-
password
Description copied from interface:BucketConfigSetter to inject the password manually into the config.- Specified by:
passwordin interfaceBucketConfig- Parameters:
password- the password of the bucket/user to inject.- Returns:
- the config for proper chaining.
-
username
Description copied from interface:BucketConfigUser authorized for the bucket access.- Specified by:
usernamein interfaceBucketConfig- Returns:
- username of the user.
-
username
Description copied from interface:BucketConfigSet user authorized for the bucket access.- Specified by:
usernamein interfaceBucketConfig- Parameters:
username- the user authorized for bucket access- Returns:
- the config for chaining
-
useAlternateNetwork
Description copied from interface:BucketConfigNon null if alternate addresses should be used, false otherwise.- Specified by:
useAlternateNetworkin interfaceBucketConfig
-
useAlternateNetwork
Description copied from interface:BucketConfigSetter to set if external networking should be used or not.- Specified by:
useAlternateNetworkin interfaceBucketConfig- Parameters:
useAlternateNetwork- if an alternate network should be used.
-
serviceEnabled
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.
-
capabilities
Description copied from interface:BucketConfigReturns the bucket capabilities of this bucket config.- Specified by:
capabilitiesin interfaceBucketConfig
-