Hai,
We are developing a Java desktop application. This application will connect to remote server using SSH and do some operations like SFTP.
In this we are facing performance issue.
Please find the attached programs and you can see the performance issue in the following method.
[login to view URL](objPattern) for executing each cmd it is taking long time.
help us to improve the performance.
private boolean isSuccess(List objPattern, String strCommandPattern) throws Exception {
boolean isFailed = checkResult([login to view URL](objPattern));
for (Object strCmd : lstCmds) {
int returnVal = [login to view URL](objPattern);
if (returnVal == -2) {
[login to view URL](strCommandPattern);
[login to view URL]("
");//enter character
return true;
}
}
NOTE : in [login to view URL] main method you can use your own server details.
Hope this will help you.