Interface ISystemCommandExecuter
-
- All Known Implementing Classes:
AbstractSystemCommandExecuterImpl,LinuxSystemCommandExecuterImpl,UnixSystemCommandExecuterImpl,WindowsSystemCommandExecuterImpl
public interface ISystemCommandExecuterDefines the system command executer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAsynchronousProcessrunAsynchronous()Start a new command asynchronous process.IProcessrunSynchronous()Start a new command synchronous process.IProcessrunSynchronous(int numberOfSecondsToWait)Start a new command synchronous process.
-
-
-
Method Detail
-
runSynchronous
IProcess runSynchronous()
Start a new command synchronous process. You will get back the terminated process.- Returns:
- the terminated process
-
runSynchronous
IProcess 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
-
runAsynchronous
IAsynchronousProcess runAsynchronous()
Start a new command asynchronous process. You will get back the started process.- Returns:
- the process
-
-