Interface CommandExecutor
- All Known Implementing Classes:
DefaultCommandExecutor
public interface CommandExecutor
Command Executor.
-
Method Summary
Modifier and TypeMethodDescriptionExecute command and build the result.execute
(Command command, OutputHandler handler) Execute command and build the result.Start command line and return associated process.
-
Method Details
-
execute
Execute command and build the result. **NOTE:** Execution is synchronous.- Parameters:
command
- Command input.- Returns:
- Result of execution.
- Throws:
IOException
- If an error occurred during execution.
-
execute
Execute command and build the result. **NOTE:** Execution is synchronous.- Parameters:
command
- Command.handler
- Custom output handler.- Returns:
- Result of execution.
- Throws:
IOException
- If an error occurred during operation.
-
start
Start command line and return associated process. This process will be used to: - Read output. - Write arguments.- Parameters:
command
- Command.- Returns:
- Process.
- Throws:
IOException
- If an error occurred during operation.
-