public class NiFi extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BOOTSTRAP_PORT_PROPERTY |
private BootstrapListener |
bootstrapListener |
private static String |
KEY_FILE_FLAG |
private static org.slf4j.Logger |
LOGGER |
private NiFiServer |
nifiServer |
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) |
private static ClassLoader |
createBootstrapClassLoader() |
private void |
detectTimingIssues()
Determine if the machine we're running on has timing issues.
|
private static String |
formatHexKey(String input) |
private static String |
getKeyFromKeyFileAndPrune(List<String> parsedArgs) |
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) |
protected void |
setDefaultUncaughtExceptionHandler() |
protected void |
shutdown() |
protected void |
shutdownHook() |
private static final org.slf4j.Logger LOGGER
private static final String KEY_FILE_FLAG
private final NiFiServer nifiServer
private final BootstrapListener bootstrapListener
public static final String BOOTSTRAP_PORT_PROPERTY
private volatile boolean shutdown
public NiFi(NiFiProperties properties) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
public NiFi(NiFiProperties properties, ClassLoader rootClassLoader) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected void setDefaultUncaughtExceptionHandler()
protected void addShutdownHook()
protected void initLogging()
private static ClassLoader createBootstrapClassLoader()
protected void shutdownHook()
protected void shutdown()
private void detectTimingIssues()
public static void main(String[] args)
args
- things which are ignoredprotected static NiFiProperties convertArgumentsToValidatedNiFiProperties(String[] args)
private static NiFiProperties initializeProperties(String[] args, ClassLoader boostrapLoader)
private static boolean isHexKeyValid(String key)
Copyright © 2019 Apache NiFi Project. All rights reserved.