Interface ProcessMachine
- All Known Implementing Classes:
ProcessMachineCmd
,ProcessMachinePowerShell
,ProcessMachineSSH
public interface ProcessMachine
Utility-interface for starting, stopping etc. processes.
-
Method Details
-
start
Starts the Process with the given commands.- Throws:
IOException
- if some exception occurs while starting (command invalid or similiar exceptions)
-
start
Starts the Process with the given command. -
stop
void stop()Stops/destroys the process. -
isAlive
boolean isAlive()Looks, if the process is still running. -
getOutputStream
Returns a stream to manupulate the current process.- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
getErrorStream
- Throws:
IOException
-