public class NiFiBootstrapUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static AbstractBootstrapPropertiesLoader |
BOOTSTRAP_PROPERTIES_LOADER |
| Constructor and Description |
|---|
NiFiBootstrapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractKeyFromBootstrapFile()
Returns the key (if any) used to encrypt sensitive properties, extracted from
$NIFI_HOME/conf/bootstrap.conf. |
static String |
extractKeyFromBootstrapFile(String bootstrapPath)
Returns the key (if any) used to encrypt sensitive properties, extracted from
$NIFI_HOME/conf/bootstrap.conf. |
static String |
getDefaultApplicationPropertiesFilePath()
Returns the default file path to
$NIFI_HOME/conf/nifi.properties. |
static BootstrapProperties |
loadBootstrapProperties()
Loads the default bootstrap.conf file into a BootstrapProperties object.
|
static BootstrapProperties |
loadBootstrapProperties(String bootstrapPath)
Loads the bootstrap.conf file into a BootstrapProperties object.
|
private static final AbstractBootstrapPropertiesLoader BOOTSTRAP_PROPERTIES_LOADER
public static String extractKeyFromBootstrapFile() throws IOException
$NIFI_HOME/conf/bootstrap.conf.IOException - if the file is not readablepublic static BootstrapProperties loadBootstrapProperties() throws IOException
IOException - If the file is not readablepublic static BootstrapProperties loadBootstrapProperties(String bootstrapPath) throws IOException
bootstrapPath - the path to the bootstrap fileIOException - If the file is not readablepublic static String extractKeyFromBootstrapFile(String bootstrapPath) throws IOException
$NIFI_HOME/conf/bootstrap.conf.bootstrapPath - the path to the bootstrap file (if null, returns the sensitive key
found in $NIFI_HOME/conf/bootstrap.conf)IOException - if the file is not readablepublic static String getDefaultApplicationPropertiesFilePath()
$NIFI_HOME/conf/nifi.properties. If the system
property nifi.properties.file.path is not set, it will be set to the relative conf/nifi.propertiesCopyright © 2022 Apache NiFi Project. All rights reserved.