Class ProcessMachineSSH
java.lang.Object
org.xbricks.common.generic.commands.worker.ProcessMachineSSH
- All Implemented Interfaces:
ProcessMachine
SSH-Implementation of
ProcessMachine. Runs the given commands on a
given remote machine over SSH. First it must be logged in with username and
password on the remote machine, then the ssh session is opened and commands
can be executed in a execution channel.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProcessMachineSSH
- Throws:
IOException
-
-
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- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin interfaceProcessMachine- Throws:
IOException
-
getErrorStream
- Specified by:
getErrorStreamin interfaceProcessMachine- Throws:
IOException
-
getType
-
setType
-