Package com.platformlib.process.executor
Interface ProcessExecutor
-
- All Known Implementing Classes:
DefaultProcessExecutor
public interface ProcessExecutorOS process executor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationSystemProcessexecute(java.lang.Object... commandAndArguments)Execute command with arguments asynchronously.java.io.InputStreamgetStdErrInputStream()Get process standard error stream.java.io.InputStreamgetStdOutInputStream()Get process standard output stream.
-
-
-
Method Detail
-
getStdOutInputStream
java.io.InputStream getStdOutInputStream()
Get process standard output stream.- Returns:
- Returns
InputStreamprovides process standard output
-
getStdErrInputStream
java.io.InputStream getStdErrInputStream()
Get process standard error stream.- Returns:
- Returns
InputStreamprovides process standard error
-
execute
OperationSystemProcess execute(java.lang.Object... commandAndArguments)
Execute command with arguments asynchronously. If the command is already specified in process configuration then command arguments will be extended with given parameters.- Parameters:
commandAndArguments- command and arguments- Returns:
- Started OS process
-
-