@SupportsSensitiveDynamicProperties @Tags(value={"dbcp","jdbc","database","connection","pooling","store"}) @CapabilityDescription(value="Provides Database Connection Pooling Service. Connections can be asked from pool and returned after usage.") @DynamicProperty(name="JDBC property name",value="JDBC property value",expressionLanguageScope=VARIABLE_REGISTRY,description="JDBC driver property name and value applied to JDBC connections.") @DynamicProperty(name="SENSITIVE.JDBC property name",value="JDBC property value",expressionLanguageScope=NONE,description="JDBC driver property name prefixed with \'SENSITIVE.\' handled as a sensitive property.") @RequiresInstanceClassLoading public class DBCPConnectionPool extends AbstractDBCPConnectionPool implements DBCPService, VerifiableControllerService
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
KERBEROS_CREDENTIALS_SERVICE |
static PropertyDescriptor |
KERBEROS_PASSWORD |
static PropertyDescriptor |
KERBEROS_PRINCIPAL |
private static List<PropertyDescriptor> |
PROPERTIES |
protected static String |
SENSITIVE_PROPERTY_PREFIX
Property Name Prefix for Sensitive Dynamic Properties
|
dataSource, kerberosUser| Constructor and Description |
|---|
DBCPConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext context) |
protected Map<String,String> |
getConnectionProperties(ConfigurationContext context) |
(package private) org.apache.commons.dbcp2.BasicDataSource |
getDataSource() |
protected DataSourceConfiguration |
getDataSourceConfiguration(ConfigurationContext context) |
protected Driver |
getDriver(String driverName,
String url) |
protected org.apache.nifi.security.krb.KerberosUser |
getKerberosUserByCredentials(ConfigurationContext context) |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
configureDataSource, getConnection, getDynamicProperties, getKerberosUser, onConfigured, shutdown, verifyabstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetConnection, getConnection, getFlowFileFilter, getFlowFileFilterinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateverifyprotected static final String SENSITIVE_PROPERTY_PREFIX
private static final List<PropertyDescriptor> PROPERTIES
public static final PropertyDescriptor KERBEROS_CREDENTIALS_SERVICE
public static final PropertyDescriptor KERBEROS_PRINCIPAL
public static final PropertyDescriptor KERBEROS_PASSWORD
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected Collection<ValidationResult> customValidate(ValidationContext context)
customValidate in class AbstractConfigurableComponentorg.apache.commons.dbcp2.BasicDataSource getDataSource()
protected DataSourceConfiguration getDataSourceConfiguration(ConfigurationContext context)
getDataSourceConfiguration in class AbstractDBCPConnectionPoolprotected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponentprotected Map<String,String> getConnectionProperties(ConfigurationContext context)
getConnectionProperties in class AbstractDBCPConnectionPoolprotected Driver getDriver(String driverName, String url)
getDriver in class AbstractDBCPConnectionPoolprotected org.apache.nifi.security.krb.KerberosUser getKerberosUserByCredentials(ConfigurationContext context)
getKerberosUserByCredentials in class AbstractDBCPConnectionPoolCopyright © 2023 Apache NiFi Project. All rights reserved.