Peter Horvath created NIFI-4485:
-----------------------------------

             Summary: It should be possible to boot the NiFi engine via the 
Java API
                 Key: NIFI-4485
                 URL: https://issues.apache.org/jira/browse/NIFI-4485
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Peter Horvath


Class {{org.apache.nifi.NiFi}} was not designed with extensibility or 
programmatic access in mind.

This class is the entry point of the engine, however, the current 
implementation does not allow
a potential caller (e.g. an integration test harness) to bootstrap the engine 
and then shut it down properly. Please Change this so that a NiFi instance can 
be started via the Java API:   

Introduce a separate class, which allows the engine to be started in "embedded" 
mode, this should be basically an extension to the existing class 
{{org.apache.nifi.NiFi#NiFi}}, but with some enhancements: The constructor 
{{org.apache.nifi.NiFi#NiFi}} registers an {{UncaughtExceptionHandler}}, a JVM 
{{Shutdown Hook}} and changes logging framework settings. These should NOT 
happen in embedded mode; in addition to that, it should be possible to shut the 
engine down via the API.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to