@Tags(value={"environment","variable"}) @CapabilityDescription(value="Fetches parameters from environment variables") @Restricted(restrictions=@Restriction(requiredPermission=ACCESS_ENVIRONMENT_CREDENTIALS,explanation="Provides operator the ability to read environment variables, which may contain environment credentials.")) public class EnvironmentVariableParameterProvider extends AbstractParameterProvider implements VerifiableParameterProvider
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
EnvironmentVariableParameterProvider.CommaSeparatedEnvironmentVariableInclusionStrategy |
(package private) static interface |
EnvironmentVariableParameterProvider.EnvironmentVariableInclusionStrategy |
(package private) static class |
EnvironmentVariableParameterProvider.IncludeAllEnvironmentVariableInclusionStrategy |
private static class |
EnvironmentVariableParameterProvider.InclusionStrategyValue |
(package private) static class |
EnvironmentVariableParameterProvider.RegexEnvironmentVariableInclusionStrategy |
| Modifier and Type | Field and Description |
|---|---|
private static AllowableValue |
COMMA_SEPARATED_STRATEGY |
static PropertyDescriptor |
ENVIRONMENT_VARIABLE_INCLUSION_STRATEGY |
private Map<String,String> |
environmentVariables |
private static AllowableValue |
INCLUDE_ALL_STRATEGY |
static PropertyDescriptor |
INCLUDE_ENVIRONMENT_VARIABLES |
static PropertyDescriptor |
PARAMETER_GROUP_NAME |
private List<PropertyDescriptor> |
properties |
private static AllowableValue |
REGEX_STRATEGY |
| Constructor and Description |
|---|
EnvironmentVariableParameterProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
List<ParameterGroup> |
fetchParameters(ConfigurationContext context) |
private EnvironmentVariableParameterProvider.EnvironmentVariableInclusionStrategy |
getStrategy(ConfigurationContext context) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ParameterProviderInitializationContext config) |
List<ConfigVerificationResult> |
verify(ConfigurationContext context,
ComponentLog verificationLogger) |
getIdentifier, getLogger, getName, getNodeTypeProvider, initializeequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final AllowableValue INCLUDE_ALL_STRATEGY
private static final AllowableValue COMMA_SEPARATED_STRATEGY
private static final AllowableValue REGEX_STRATEGY
public static final PropertyDescriptor ENVIRONMENT_VARIABLE_INCLUSION_STRATEGY
public static final PropertyDescriptor INCLUDE_ENVIRONMENT_VARIABLES
public static final PropertyDescriptor PARAMETER_GROUP_NAME
private List<PropertyDescriptor> properties
public EnvironmentVariableParameterProvider()
protected void init(ParameterProviderInitializationContext config)
init in class AbstractParameterProviderprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic List<ParameterGroup> fetchParameters(ConfigurationContext context)
fetchParameters in interface ParameterProviderpublic List<ConfigVerificationResult> verify(ConfigurationContext context, ComponentLog verificationLogger)
verify in interface VerifiableParameterProviderprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentprivate EnvironmentVariableParameterProvider.EnvironmentVariableInclusionStrategy getStrategy(ConfigurationContext context)
Copyright © 2023 Apache NiFi Project. All rights reserved.