Gábor Gyimesi created MINIFICPP-2942:
----------------------------------------

             Summary: Refactor request_shutdown in MiNiFiMain
                 Key: MINIFICPP-2942
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2942
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Gábor Gyimesi
             Fix For: 1.2.0


[https://github.com/apache/nifi-minifi-cpp/pull/2292#discussion_r4480606940]

In MiNiFiMain we should replace the "request_shutdown" std::function with 
something like this:

{code:java}
class AgentController {
 public:
  void requestShutdown(std::optional<int32_t> exit_code);
  void requestRestart();
};

{code}
The goal is to separate the restart and shutdown requests, also to encapsulate 
the state management for it which is currently scattered in MiNiFiMain.cpp.

 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to