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
-
Method Summary
-
Constructor Details
-
ProcessMachineCmd
-
-
Method Details
-
start
Description copied from interface:ProcessMachine
Starts the Process with the given commands.- Specified by:
start
in interfaceProcessMachine
- Throws:
IOException
- if some exception occurs while starting (command invalid or similiar exceptions)
-
start
Description copied from interface:ProcessMachine
Starts the Process with the given command.- Specified by:
start
in interfaceProcessMachine
-
stop
public void stop()Description copied from interface:ProcessMachine
Stops/destroys the process.- Specified by:
stop
in interfaceProcessMachine
-
isAlive
public boolean isAlive()Description copied from interface:ProcessMachine
Looks, if the process is still running.- Specified by:
isAlive
in interfaceProcessMachine
-
getOutputStream
Description copied from interface:ProcessMachine
Returns a stream to manupulate the current process.- Specified by:
getOutputStream
in interfaceProcessMachine
-
getInputStream
- Specified by:
getInputStream
in interfaceProcessMachine
-
getErrorStream
- Specified by:
getErrorStream
in interfaceProcessMachine
-