Package org.pentaho.di.core.ssh.mina
Class MinaSshConnection
java.lang.Object
org.pentaho.di.core.ssh.mina.MinaSshConnection
- All Implemented Interfaces:
AutoCloseable,SshConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the SSH connection and releases resources.voidconnect()Establishes the SSH connection.Executes a command on the remote SSH server using the configured timeout.Executes a command on the remote SSH server.openSftp()Opens an SFTP session for file operations.
-
Constructor Details
-
MinaSshConnection
-
-
Method Details
-
connect
Description copied from interface:SshConnectionEstablishes the SSH connection.- Specified by:
connectin interfaceSshConnection- Throws:
SshConnectionException
-
exec
Description copied from interface:SshConnectionExecutes a command on the remote SSH server.- Specified by:
execin interfaceSshConnection- Parameters:
command- the command to executetimeoutMs- timeout in milliseconds- Returns:
- the execution result
- Throws:
SshConnectionException
-
exec
Description copied from interface:SshConnectionExecutes a command on the remote SSH server using the configured timeout.- Specified by:
execin interfaceSshConnection- Parameters:
command- the command to execute- Returns:
- the execution result
- Throws:
SshConnectionException
-
openSftp
Description copied from interface:SshConnectionOpens an SFTP session for file operations.- Specified by:
openSftpin interfaceSshConnection- Returns:
- the SFTP session
- Throws:
SshConnectionException
-
close
public void close()Description copied from interface:SshConnectionCloses the SSH connection and releases resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSshConnection
-