Class SFTPClient

java.lang.Object
org.pentaho.di.job.entries.sftp.SFTPClient

public class SFTPClient extends Object
  • Field Details

  • Constructor Details

    • SFTPClient

      public SFTPClient(InetAddress serverIP, int serverPort, String userName) throws org.pentaho.di.core.exception.KettleJobException
      Init Helper Class with connection settings
      Parameters:
      serverIP - IP address of remote server
      serverPort - port of remote server
      userName - username of remote server
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • SFTPClient

      public SFTPClient(InetAddress serverIP, int serverPort, String userName, String privateKeyFilename) throws org.pentaho.di.core.exception.KettleJobException
      Init Helper Class with connection settings
      Parameters:
      serverIP - IP address of remote server
      serverPort - port of remote server
      userName - username of remote server
      privateKeyFilename - filename of private key
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • SFTPClient

      public SFTPClient(InetAddress serverIP, int serverPort, String userName, String privateKeyFilename, String passPhrase) throws org.pentaho.di.core.exception.KettleJobException
      Init Helper Class with connection settings
      Parameters:
      serverIP - IP address of remote server
      serverPort - port of remote server
      userName - username of remote server
      privateKeyFilename - filename of private key
      passPhrase - passphrase
      Throws:
      org.pentaho.di.core.exception.KettleJobException
  • Method Details

    • login

      public void login(String password) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • chdir

      public void chdir(String dirToChangeTo) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • dir

      public String[] dir() throws org.pentaho.di.core.exception.KettleJobException
      Returns:
      Files in current directory
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • get

      public void get(org.apache.commons.vfs2.FileObject localFile, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • get

      @Deprecated public void get(String localFilePath, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
      Deprecated.
      Parameters:
      localFilePath -
      remoteFile -
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • pwd

      public String pwd() throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • put

      public void put(org.apache.commons.vfs2.FileObject fileObject, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • put

      public void put(InputStream inputStream, String remoteFile) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • delete

      public void delete(String file) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • createFolder

      public void createFolder(String path) throws org.pentaho.di.core.exception.KettleJobException
      Creates the given folder. The can be either absolute or relative. Allows creation of nested folders.
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • renameFile

      public void renameFile(String sourcefilename, String destinationfilename) throws org.pentaho.di.core.exception.KettleJobException
      Rename the file.
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • getFileType

      public org.apache.commons.vfs2.FileType getFileType(String filename) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • folderExists

      public boolean folderExists(String foldername)
    • setProxy

      public void setProxy(String host, String port, String user, String pass, String proxyType) throws org.pentaho.di.core.exception.KettleJobException
      Throws:
      org.pentaho.di.core.exception.KettleJobException
    • disconnect

      public void disconnect()
    • getPrivateKeyFileName

      public String getPrivateKeyFileName()
    • getPrivateKeyPassPhrase

      public String getPrivateKeyPassPhrase()
    • getPassword

      public String getPassword()
    • getServerPort

      public int getServerPort()
    • getUserName

      public String getUserName()
    • getServerIP

      public InetAddress getServerIP()
    • setCompression

      public void setCompression(String compression)
    • getCompression

      public String getCompression()