Class ProcessMachineCmd
java.lang.Object
org.xbricks.common.generic.commands.worker.ProcessMachineCmd
- All Implemented Interfaces:
ProcessMachine
Cmd-Implementation of
ProcessMachine. Runs the given commands on the
local machine. Is only supported on windows, on other os` use another
ProcessMachine.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProcessMachineCmd
-
-
Method Details
-
start
Description copied from interface:ProcessMachineStarts the Process with the given commands.- Specified by:
startin interfaceProcessMachine- Throws:
IOException- if some exception occurs while starting (command invalid or similiar exceptions)
-
start
Description copied from interface:ProcessMachineStarts the Process with the given command.- Specified by:
startin interfaceProcessMachine
-
stop
public void stop()Description copied from interface:ProcessMachineStops/destroys the process.- Specified by:
stopin interfaceProcessMachine
-
isAlive
public boolean isAlive()Description copied from interface:ProcessMachineLooks, if the process is still running.- Specified by:
isAlivein interfaceProcessMachine
-
getOutputStream
Description copied from interface:ProcessMachineReturns a stream to manupulate the current process.- Specified by:
getOutputStreamin interfaceProcessMachine
-
getInputStream
- Specified by:
getInputStreamin interfaceProcessMachine
-
getErrorStream
- Specified by:
getErrorStreamin interfaceProcessMachine
-