Results 1 to 2 of 2
Thread: Sftp thread for multiple site
- 05-12-2011, 06:03 PM #1
Member
- Join Date
- May 2011
- Posts
- 3
- Rep Power
- 0
Sftp thread for multiple site
I'm new to multithreading. I want to develop code that will read login information from a file (have that part) and use it to Sftp files using the information. The Sftp part is working. In some case I have 60+ sites to sftp files from. It takes 57 secs when this is done in C++. I didn't write the code, so I don't understand it. I want to do them same in Java, but don't know how. My thought is I will develop an SftpThread that will do the work. My main will read the login info into a Map then loop through the map creating a thread for each login entry. Does this sound reasonable? Not sure if I should use "extends Thread" or "implements Runnable". And how many threads are too many? Any advice and/or guidance will be much appreciated. Currently, this is done sequentially and taking over 30 mins to complete. Of course this is unacceptable.
- 08-06-2011, 07:04 AM #2
- Join Date
- Dec 2010
- Location
- Stockholm, Sweden
- Posts
- 222
- Blog Entries
- 9
- Rep Power
- 11
My advice is to write your post on more then one line so we do not get eye-ache while reading it.
After that I would like a minor [actually almost major] clarification, do you mean FTPS (Explicity secure FTP)
or SFTP (SSH [like in the Unix-like-world] file transfer protocol)?Ex animo! Hibernate
Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.
Similar Threads
-
Java Download from SFTP
By hardcorebadger in forum New To JavaReplies: 3Last Post: 01-21-2011, 04:49 PM -
while running multiple thread repaint isnt being called....
By raptor in forum Threads and SynchronizationReplies: 4Last Post: 08-26-2010, 12:47 AM -
sftp Authentication
By suprimcy in forum New To JavaReplies: 2Last Post: 06-01-2010, 01:49 AM -
SFTP applet (SSH FTP)
By jfileupload in forum Java SoftwareReplies: 1Last Post: 02-26-2009, 11:31 PM -
Rad SFTP Applet 2.01
By levent in forum Java SoftwareReplies: 0Last Post: 05-22-2007, 07:59 AM
Bookmarks