T - Client Typepublic abstract class BootstrapPropertiesClientProvider<T> extends Object implements ClientProvider<T>
| Modifier and Type | Field and Description |
|---|---|
private BootstrapProperties.BootstrapPropertyKey |
bootstrapPropertyKey |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BootstrapPropertiesClientProvider(BootstrapProperties.BootstrapPropertyKey bootstrapPropertyKey) |
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
getClient(Properties clientProperties)
Get Client using Client Properties
|
Optional<Properties> |
getClientProperties(BootstrapProperties bootstrapProperties)
Get Client Properties from file referenced in Bootstrap Properties
|
protected abstract T |
getConfiguredClient(Properties clientProperties)
Get Configured Client using Client Properties
|
protected abstract Set<String> |
getRequiredPropertyNames()
Get Property Names required for initializing client in order to perform initial validation
|
private boolean |
isMissingProperties(Properties clientProperties) |
protected final org.slf4j.Logger logger
private final BootstrapProperties.BootstrapPropertyKey bootstrapPropertyKey
public BootstrapPropertiesClientProvider(BootstrapProperties.BootstrapPropertyKey bootstrapPropertyKey)
public Optional<T> getClient(Properties clientProperties)
getClient in interface ClientProvider<T>clientProperties - Client Properties can be nullpublic Optional<Properties> getClientProperties(BootstrapProperties bootstrapProperties)
getClientProperties in interface ClientProvider<T>bootstrapProperties - Bootstrap Propertiesprotected abstract T getConfiguredClient(Properties clientProperties)
clientProperties - Client Propertiesprotected abstract Set<String> getRequiredPropertyNames()
private boolean isMissingProperties(Properties clientProperties)
Copyright © 2023 Apache NiFi Project. All rights reserved.