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
-
Method Summary
-
Constructor Details
-
ProcessMachineSSH
- Throws:
IOException
-
-
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
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in interfaceProcessMachine
- Throws:
IOException
-
getErrorStream
- Specified by:
getErrorStream
in interfaceProcessMachine
- Throws:
IOException
-
getType
-
setType
-