public class RegexNamespaceResolver extends Object implements NamespaceResolver
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Set<Pattern>> |
namespacePatterns |
static String |
PATTERN_PROPERTY_PREFIX |
static String |
PATTERN_PROPERTY_PREFIX_DESC |
| Constructor and Description |
|---|
RegexNamespaceResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(PropertyContext context)
Implementation should clear previous configurations when this method is called again.
|
private void |
consumeConfigurations(Map<String,String> allProperties,
BiConsumer<String,Set<Pattern>> consumer,
BiConsumer<Map.Entry<String,String>,RuntimeException> errorHandler) |
String |
fromHostNames(String... hostNames)
Resolve a namespace from a list of host names or IP addresses.
|
PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
private Set<Pattern> |
parseNamespacePatterns(String namespace,
List<String> regexs) |
Collection<ValidationResult> |
validate(ValidationContext validationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromHintspublic static final String PATTERN_PROPERTY_PREFIX
public static final String PATTERN_PROPERTY_PREFIX_DESC
public PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in interface NamespaceResolverpublic Collection<ValidationResult> validate(ValidationContext validationContext)
validate in interface NamespaceResolverpublic void configure(PropertyContext context)
NamespaceResolverconfigure in interface NamespaceResolvercontext - passed from ReportingTaskprivate void consumeConfigurations(Map<String,String> allProperties, BiConsumer<String,Set<Pattern>> consumer, BiConsumer<Map.Entry<String,String>,RuntimeException> errorHandler)
private Set<Pattern> parseNamespacePatterns(String namespace, List<String> regexs)
public String fromHostNames(String... hostNames)
NamespaceResolverfromHostNames in interface NamespaceResolverhostNames - host names or IP addressesCopyright © 2024 Apache NiFi Project. All rights reserved.