Class BootstrapConfigurationFileTransformer
java.lang.Object
org.apache.nifi.toolkit.config.transformer.BootstrapConfigurationFileTransformer
- All Implemented Interfaces:
FileTransformer
File Transformer supporting Bootstrap Configuration with updated Root Key
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapConfigurationFileTransformer(String rootKeyPropertyName, String rootKey) Bootstrap Configuration File Transformer writes provided Root Key to output files -
Method Summary
Modifier and TypeMethodDescriptionprivate voidtransform(BufferedReader reader, BufferedWriter writer) voidTransform input configuration and write Root Key to output locationprivate voidwriteRootKey(BufferedWriter writer)
-
Field Details
-
PROPERTY_VALUE_PATTERN
-
NAME_GROUP
private static final int NAME_GROUP- See Also:
-
PROPERTY_VALUE_SEPARATOR
private static final char PROPERTY_VALUE_SEPARATOR- See Also:
-
rootKeyPropertyName
-
rootKey
-
-
Constructor Details
-
BootstrapConfigurationFileTransformer
Bootstrap Configuration File Transformer writes provided Root Key to output files- Parameters:
rootKeyPropertyName- Root Key property name to be writtenrootKey- Root Key to be written
-
-
Method Details
-
transform
Transform input configuration and write Root Key to output location- Specified by:
transformin interfaceFileTransformer- Parameters:
inputPath- Input file path to be transformed containing Bootstrap ConfigurationoutputPath- Output file path for updated configuration- Throws:
IOException- Thrown on transformation failures
-
transform
- Throws:
IOException
-
writeRootKey
- Throws:
IOException
-