Interface ISystemCommandExecuter
-
- All Known Implementing Classes:
AbstractSystemCommandExecuterImpl,LinuxSystemCommandExecuterImpl,UnixSystemCommandExecuterImpl,WindowsSystemCommandExecuterImpl
public interface ISystemCommandExecuterThe system command executer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAsynchronousProcessrunAsynchronous()Start a new command asynchronous process.IAsynchronousProcessrunAsynchronous(IProcessInputStream processInputStream, IProcessOutputStream processOut, IProcessOutputStream processErr)Start a new command asynchronous process.IAsynchronousProcessrunAsynchronous(IProcessInputStream processInputStream, IProcessOutputStream processOut, IProcessOutputStream processErr, long pollTimeout)Start a new command asynchronous process.IAsynchronousProcessrunAsynchronous(IProcessOutputStream processOutAndErr)Start a new command asynchronous process.IAsynchronousProcessrunAsynchronous(IProcessOutputStream processOut, IProcessOutputStream processErr)Start a new command asynchronous process.ISynchronousProcessrunSynchronous()Start a new command synchronous process.ISynchronousProcessrunSynchronous(int numberOfSecondsToWait)Start a new command synchronous process.ISynchronousProcessrunSynchronous(IProcessInputStream processInputStream, int numberOfSecondsToWait)Start a new command asynchronous process.
-
-
-
Method Detail
-
runSynchronous
ISynchronousProcess runSynchronous()
Start a new command synchronous process. You will get back the terminated process.- Returns:
- the terminated process
-
runSynchronous
ISynchronousProcess runSynchronous(int numberOfSecondsToWait)
Start a new command synchronous process. You will get back the terminated process. In case it could not be finished in the given time it will be destroyed.- Parameters:
numberOfSecondsToWait- the number of seconds to wait. If the value less or equal 0, it waits until it is executed- Returns:
- the process
-
runSynchronous
ISynchronousProcess runSynchronous(IProcessInputStream processInputStream, int numberOfSecondsToWait)
Start a new command asynchronous process. You will get back the started process.- Parameters:
processInputStream- the process input streamnumberOfSecondsToWait- the number of seconds to wait. If the value less or equal 0, it waits until it is executed- Returns:
- the asynchronous process which is already started
-
runAsynchronous
IAsynchronousProcess runAsynchronous()
Start a new command asynchronous process. You will get back the started process.- Returns:
- the asynchronous process which is already started
-
runAsynchronous
IAsynchronousProcess runAsynchronous(IProcessOutputStream processOutAndErr)
Start a new command asynchronous process. You will get back the started process.- Parameters:
processOutAndErr- the process output and error stream- Returns:
- the asynchronous process which is already started
-
runAsynchronous
IAsynchronousProcess runAsynchronous(IProcessOutputStream processOut, IProcessOutputStream processErr)
Start a new command asynchronous process. You will get back the started process.- Parameters:
processOut- the process output streamprocessErr- the process error stream- Returns:
- the asynchronous process which is already started
-
runAsynchronous
IAsynchronousProcess runAsynchronous(IProcessInputStream processInputStream, IProcessOutputStream processOut, IProcessOutputStream processErr)
Start a new command asynchronous process. You will get back the started process.- Parameters:
processInputStream- the process input streamprocessOut- the process output streamprocessErr- the process error stream- Returns:
- the asynchronous process which is already started
-
runAsynchronous
IAsynchronousProcess runAsynchronous(IProcessInputStream processInputStream, IProcessOutputStream processOut, IProcessOutputStream processErr, long pollTimeout)
Start a new command asynchronous process. You will get back the started process.- Parameters:
processInputStream- the process input streamprocessOut- the process output streamprocessErr- the process error streampollTimeout- the poll timeout to handle the output streams- Returns:
- the asynchronous process which is already started
-
-