public class NamespaceResolvers extends Object implements NamespaceResolver
| Modifier and Type | Field and Description |
|---|---|
private String |
defaultNamespace |
private Set<NamespaceResolver> |
resolvers |
| Constructor and Description |
|---|
NamespaceResolvers(Set<NamespaceResolver> resolvers,
String defaultNamespace) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(PropertyContext context)
Implementation should clear previous configurations when this method is called again.
|
String |
fromHints(Map<String,String> hints)
Resolve a namespace from hints, such as Zookeeper Quorum, client port and znode path
|
String |
fromHostNames(String... hostNames)
Resolve a namespace from a list of host names or IP addresses.
|
PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
Collection<ValidationResult> |
validate(ValidationContext validationContext) |
private final Set<NamespaceResolver> resolvers
private final String defaultNamespace
public NamespaceResolvers(Set<NamespaceResolver> resolvers, String defaultNamespace)
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 ReportingTaskpublic String fromHostNames(String... hostNames)
NamespaceResolverfromHostNames in interface NamespaceResolverhostNames - host names or IP addressespublic String fromHints(Map<String,String> hints)
NamespaceResolverfromHints in interface NamespaceResolverhints - Contains variables to resolve a namespaceCopyright © 2024 Apache NiFi Project. All rights reserved.