use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.
the class AixSystem method executeCommand.
@Override
public void executeCommand(Command command, int timeout) {
SSHCommandExecutor executor = new SSHCommandExecutor(getHost(), getPort(), getUsername(), getPassword());
executor.setCommandTimeout(timeout);
command.setCommandExecutor(executor);
command.execute();
}
use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.
the class LinuxSystemCLI method executeCommand.
public void executeCommand(Command command, int timeout) {
SSHCommandExecutor executor = new SSHCommandExecutor(host, port, username, password);
executor.setCommandTimeout(timeout);
command.setCommandExecutor(executor);
command.execute();
}
use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.
the class LinuxExecutionTask method createCommandExecutor.
protected SSHCommandExecutor createCommandExecutor(int timeout) {
SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
executor.setCommandTimeout(timeout);
return executor;
}
use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.
the class HpuxExecutionTask method createCommandExecutor.
protected SSHCommandExecutor createCommandExecutor(int timeout) {
SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
executor.setCommandTimeout(timeout);
return executor;
}
use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.
the class AixExecutionTask method createCommandExecutor.
protected SSHCommandExecutor createCommandExecutor(int timeout) {
SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
executor.setCommandTimeout(timeout);
return executor;
}
Aggregations