Package org.apache.nifi.couchbase
Class CouchbaseClusterService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.couchbase.CouchbaseClusterService
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,CouchbaseClusterControllerService
@CapabilityDescription("Provides a centralized Couchbase connection and bucket passwords management. Bucket passwords can be specified via dynamic properties.")
@Tags({"nosql","couchbase","database","connection"})
@DynamicProperty(name="Bucket Password for BUCKET_NAME",
value="bucket password",
description="Specify bucket password if necessary. Couchbase Server 5.0 or later should use \'User Name\' and \'User Password\' instead.")
public class CouchbaseClusterService
extends AbstractControllerService
implements CouchbaseClusterControllerService
Provides a centralized Couchbase connection and bucket passwords management.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.couchbase.client.java.CouchbaseClusterstatic final PropertyDescriptorprivate static final Stringprivate static final List<PropertyDescriptor> static final PropertyDescriptorstatic final PropertyDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<ValidationResult> customValidate(ValidationContext context) protected PropertyDescriptorgetSupportedDynamicPropertyDescriptor(String propertyDescriptorName) protected List<PropertyDescriptor> voidonConfigured(ConfigurationContext context) Establish a connection to a Couchbase cluster.com.couchbase.client.java.BucketopenBucket(String bucketName) voidshutdown()Disconnect from the Couchbase cluster.Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Field Details
-
CONNECTION_STRING
-
USER_NAME
-
USER_PASSWORD
-
properties
-
DYNAMIC_PROP_BUCKET_PASSWORD
- See Also:
-
bucketPasswords
-
cluster
private volatile com.couchbase.client.java.CouchbaseCluster cluster
-
-
Constructor Details
-
CouchbaseClusterService
public CouchbaseClusterService()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
getSupportedDynamicPropertyDescriptor
- Overrides:
getSupportedDynamicPropertyDescriptorin classAbstractConfigurableComponent
-
customValidate
- Overrides:
customValidatein classAbstractConfigurableComponent
-
onConfigured
Establish a connection to a Couchbase cluster.- Parameters:
context- the configuration context- Throws:
InitializationException- if unable to connect a Couchbase cluster
-
openBucket
- Specified by:
openBucketin interfaceCouchbaseClusterControllerService
-
shutdown
Disconnect from the Couchbase cluster.
-