public class NiFi extends Object implements NiFiEntryPoint
Modifier and Type | Field and Description |
---|---|
static String |
BOOTSTRAP_PORT_PROPERTY |
private BootstrapListener |
bootstrapListener |
static DateTimeFormatter |
DATE_TIME_FORMATTER |
private static String |
KEY_FILE_FLAG |
private static org.slf4j.Logger |
LOGGER |
private NiFiServer |
nifiServer |
private NiFiProperties |
properties |
private boolean |
shutdown |
Constructor and Description |
---|
NiFi(NiFiProperties properties) |
NiFi(NiFiProperties properties,
ClassLoader rootClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected void |
addShutdownHook() |
protected static NiFiProperties |
convertArgumentsToValidatedNiFiProperties(String[] args) |
protected static NiFiProperties |
convertArgumentsToValidatedNiFiProperties(String[] args,
ClassLoader bootstrapClassLoader) |
private static ClassLoader |
createBootstrapClassLoader() |
private void |
detectTimingIssues()
Determine if the machine we're running on has timing issues.
|
private void |
diagnose(File file,
boolean verbose) |
private static String |
formatHexKey(String input) |
private static String |
getKeyFromKeyFileAndPrune(List<String> parsedArgs) |
NiFiServer |
getServer() |
private static NiFiProperties |
initializeProperties(String[] args,
ClassLoader boostrapLoader) |
protected void |
initLogging() |
private static boolean |
isHexKeyValid(String key) |
private static String |
loadFormattedKey(String[] args) |
static void |
main(String[] args)
Main entry point of the application.
|
private static List<String> |
parseArgs(String[] args) |
private void |
runDiagnosticsOnShutdown() |
protected void |
setDefaultUncaughtExceptionHandler() |
protected void |
shutdown() |
void |
shutdownHook(boolean isReload) |
public static final String BOOTSTRAP_PORT_PROPERTY
public static final DateTimeFormatter DATE_TIME_FORMATTER
private static final org.slf4j.Logger LOGGER
private static final String KEY_FILE_FLAG
private final NiFiServer nifiServer
private final BootstrapListener bootstrapListener
private final NiFiProperties properties
private volatile boolean shutdown
public NiFi(NiFiProperties properties) throws ClassNotFoundException, IOException, IllegalArgumentException
public NiFi(NiFiProperties properties, ClassLoader rootClassLoader) throws ClassNotFoundException, IOException, IllegalArgumentException
public NiFiServer getServer()
getServer
in interface NiFiEntryPoint
protected void setDefaultUncaughtExceptionHandler()
protected void addShutdownHook()
protected void initLogging()
private static ClassLoader createBootstrapClassLoader()
public void shutdownHook(boolean isReload)
shutdownHook
in interface NiFiEntryPoint
private void runDiagnosticsOnShutdown() throws IOException
IOException
private void diagnose(File file, boolean verbose) throws IOException
IOException
protected void shutdown()
private void detectTimingIssues()
public static void main(String[] args)
args
- things which are ignoredprotected static NiFiProperties convertArgumentsToValidatedNiFiProperties(String[] args)
protected static NiFiProperties convertArgumentsToValidatedNiFiProperties(String[] args, ClassLoader bootstrapClassLoader)
private static NiFiProperties initializeProperties(String[] args, ClassLoader boostrapLoader)
private static boolean isHexKeyValid(String key)
Copyright © 2022 Apache NiFi Project. All rights reserved.