Package org.apache.nifi.bootstrap
Interface BootstrapCommunicator
public interface BootstrapCommunicator
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterMessageHandler(String command, BiConsumer<String[], OutputStream> handler) Register a handler for messages coming from bootstrap processsendCommand(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- Returns:
CommandResultof the command sent to Bootstrap- 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
-