Class BootstrapPropertiesClientProvider<T>
java.lang.Object
org.apache.nifi.properties.configuration.BootstrapPropertiesClientProvider<T>
- Type Parameters:
T- Client Type
- All Implemented Interfaces:
ClientProvider<T>
public abstract class BootstrapPropertiesClientProvider<T>
extends Object
implements ClientProvider<T>
Shared Client Provider for reading Client Properties from file referenced in configured Bootstrap Property Key
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BootstrapProperties.BootstrapPropertyKeyprotected final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapPropertiesClientProvider(BootstrapProperties.BootstrapPropertyKey bootstrapPropertyKey) -
Method Summary
Modifier and TypeMethodDescriptiongetClient(Properties clientProperties) Get Client using Client PropertiesgetClientProperties(BootstrapProperties bootstrapProperties) Get Client Properties from file referenced in Bootstrap Propertiesprotected abstract TgetConfiguredClient(Properties clientProperties) Get Configured Client using Client PropertiesGet Property Names required for initializing client in order to perform initial validationprivate booleanisMissingProperties(Properties clientProperties)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
bootstrapPropertyKey
-
-
Constructor Details
-
BootstrapPropertiesClientProvider
public BootstrapPropertiesClientProvider(BootstrapProperties.BootstrapPropertyKey bootstrapPropertyKey)
-
-
Method Details
-
getClient
Get Client using Client Properties- Specified by:
getClientin interfaceClientProvider<T>- Parameters:
clientProperties- Client Properties can be null- Returns:
- Configured Client or empty when Client Properties object is null
-
getClientProperties
Get Client Properties from file referenced in Bootstrap Properties- Specified by:
getClientPropertiesin interfaceClientProvider<T>- Parameters:
bootstrapProperties- Bootstrap Properties- Returns:
- Client Properties or empty when not configured
-
getConfiguredClient
Get Configured Client using Client Properties- Parameters:
clientProperties- Client Properties- Returns:
- Configured Client
-
getRequiredPropertyNames
Get Property Names required for initializing client in order to perform initial validation- Returns:
- Set of required client property names
-
isMissingProperties
-