Package org.apache.nifi.bootstrap
Interface BootstrapCommunicator
public interface BootstrapCommunicator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerMessageHandler
(String command, BiConsumer<String[], OutputStream> handler) Register a handler for messages coming from bootstrap processvoid
sendCommand
(String command, String... args) Sends a command with specific arguments to the bootstrap process
-
Method Details
-
sendCommand
Sends a command with specific arguments to the bootstrap process- Parameters:
command
- the command to sendargs
- the args to send- Throws:
IOException
- exception in case of communication issue
-
registerMessageHandler
Register a handler for messages coming from bootstrap process- Parameters:
command
- the commandhandler
- handler for the specific command
-