We are using the class SecureFileTransferClient for transferring the files using SFTP protocol. There are some performance issues in the file transfer (i.e. taking longer). We are looking for solutions to improve the performance.
Class: com.enterprisedt.net.ftp.SecureFileTransferClient (Version 4.0.0 Jar)
While creating the client object (SecureFileTransferClient), we are setting the basic parameters like timeout, username, password, protocol, remote host etc.
Question 1: Is there any other parameters which can be set to improve the performance (i.e. transfer speed)?
Question 2: As an alternative, I have looked at SSHFTPClient class and can transfer files using test program. I am not sure when SSHFTPClient class should be used compared to SecureFileTransferClient class. Whether performance can be improved if we use SSHFTPClient class?
My requirement is to use SFTP. So I don't need to change the protocol which is very easy in SecureFileTransferClient (i.e. by calling setProtocol method). Is there any other advantage of using SecureFileTransferClient rather than SSHFTPClient?
com.enterprisedt.net.ftp.ssh.SSHFTPClient
Other questions:-
3) What is the default encryption used by SecureFileTransferClient? Is there an option to set the fastest encryption logarithm?
4) Is there an option to set the buffer size?
5) Any other mechanism to improve the performance?