Click here to Skip to main content
15,903,030 members
Home / Discussions / Java
   

Java

 
AnswerRe: Addding multiple jTables in jTextArea Pin
Shubhashish_Mandal27-Aug-13 3:41
professionalShubhashish_Mandal27-Aug-13 3:41 
GeneralRe: Addding multiple jTables in jTextArea Pin
Anchal Singh27-Aug-13 23:42
Anchal Singh27-Aug-13 23:42 
GeneralRe: Addding multiple jTables in jTextArea Pin
Shubhashish_Mandal28-Aug-13 3:23
professionalShubhashish_Mandal28-Aug-13 3:23 
QuestionWindowBuilder JTable Pin
DanzelAnerfee22-Aug-13 4:48
DanzelAnerfee22-Aug-13 4:48 
QuestionStore repeating sequence of integer in another array Pin
@VJParikh21-Aug-13 10:09
@VJParikh21-Aug-13 10:09 
AnswerRe: Store repeating sequence of integer in another array Pin
Richard MacCutchan21-Aug-13 21:26
mveRichard MacCutchan21-Aug-13 21:26 
AnswerRe: Store repeating sequence of integer in another array Pin
Bernhard Hiller21-Aug-13 22:02
Bernhard Hiller21-Aug-13 22:02 
QuestionJsch Channelsftp LS is gets slower as more files added to UNIX folder Pin
Member 1021369316-Aug-13 4:11
Member 1021369316-Aug-13 4:11 
I have a question with the performance of the LS method used with java class, ChannelSftp in a windows java program. The outputPath below is pointing to a UNIX folder:

JSch.setLogger(new MyLogger());
JSch jsch = new JSch();
Session session = null;
String password = "<Password>" + "";

//Create session for sftp files with remote server
session = jsch.getSession(username,server,22);
session.setConfig("StrictHostKeyChecking","no");
session.setPassword(password);
session.connect();

//Create channel for sftp files with remote server
Channel channel = session.openChannel("sftp");
channel.connect();
ChannelSftp sftpChannel = (ChannelSftp) channel;

sftpChannel.cd(sftpChannel.getHome());
sftpChannel.cd("<outputPath>");

Vector matchedFiles = sftpChannel.ls("<vuser>-<DateField>-" + "*PAIN*.xml");

The more files that are in the outputPath folder the longer the LS method takes. If I delete all files in outputPath, the method takes less than 1 second. As the number of files increase in outputPath, it may take much longer. With over 180K files, LS has taken 90+ seconds. I changed my code to do a get of a remote known UNIX file in the very large folder and it returned to the local folder in less than 1 second. In many cases my LS command with wildcards will return only 1 file and this may take a long time again depending on the number of files in the UNIX folder. The code I am developing is time sensitive and used to measure response times of a file handling system.
Anyone have any suggestions?
AnswerRe: Jsch Channelsftp LS is gets slower as more files added to UNIX folder Pin
Richard MacCutchan16-Aug-13 4:46
mveRichard MacCutchan16-Aug-13 4:46 
GeneralRe: Jsch Channelsftp LS is gets slower as more files added to UNIX folder Pin
Member 1021369321-Aug-13 4:46
Member 1021369321-Aug-13 4:46 
GeneralRe: Jsch Channelsftp LS is gets slower as more files added to UNIX folder Pin
Richard MacCutchan21-Aug-13 5:12
mveRichard MacCutchan21-Aug-13 5:12 
QuestionJava - Any Idea's for a program? Pin
C.CoderCreator13-Aug-13 1:23
C.CoderCreator13-Aug-13 1:23 
AnswerRe: Java - Any Idea's for a program? Pin
Richard MacCutchan13-Aug-13 5:19
mveRichard MacCutchan13-Aug-13 5:19 
AnswerRe: Java - Any Idea's for a program? Pin
TorstenH.13-Aug-13 20:58
TorstenH.13-Aug-13 20:58 
Questiondear developer Pin
Member 1020352911-Aug-13 22:06
Member 1020352911-Aug-13 22:06 
AnswerRe: dear developer Pin
Richard MacCutchan12-Aug-13 1:06
mveRichard MacCutchan12-Aug-13 1:06 
QuestionDear Develepoer Pin
Dere1211-Aug-13 21:27
Dere1211-Aug-13 21:27 
AnswerRe: Dear Develepoer Pin
Richard MacCutchan12-Aug-13 1:03
mveRichard MacCutchan12-Aug-13 1:03 
AnswerRe: Dear Develepoer Pin
jschell12-Aug-13 8:20
jschell12-Aug-13 8:20 
QuestionWhat is difference between debug,deploy,build and run in java Pin
Member 102007689-Aug-13 20:16
Member 102007689-Aug-13 20:16 
AnswerRe: What is difference between debug,deploy,build and run in java Pin
Richard MacCutchan9-Aug-13 23:44
mveRichard MacCutchan9-Aug-13 23:44 
QuestionJava Thread in Networking Pin
santhosh kumar bhagavathi m9-Aug-13 1:46
santhosh kumar bhagavathi m9-Aug-13 1:46 
AnswerRe: Java Thread in Networking Pin
Richard MacCutchan9-Aug-13 23:45
mveRichard MacCutchan9-Aug-13 23:45 
GeneralRe: Java Thread in Networking Pin
cdenczek27-Aug-13 8:53
cdenczek27-Aug-13 8:53 
AnswerRe: Java Thread in Networking Pin
jschell10-Aug-13 11:27
jschell10-Aug-13 11:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.