Reputation: 1049
I'm a newbie Java programmer. In this thread I do not need any specific program code. I just need some advice how to get started with my project.
I have a program which is currently running in PHP and I want to rewrite it in Java for practice.
So the task is:
And that's all. My main issue is that the program has to do this 24/7 and the big question is: Is it possible in Java to make parallel downloads and if so, how should I start?
Any guide or advice is greatly appreciated.
Upvotes: 0
Views: 308
Reputation: 2416
Of course it is possible, but as Mr D said it is not something a Java beginner can do.
Just to have an idea what it involves:
And a lot more.
UPDATE:
Basically you need one check-and-dispatch class (e.g. DownloadManager
) that will periodically go through the list of servers and spawn another FTPDownloder
class (implements Runnable
) with all information it needs (URL, local filename, timeout etc.) in a new Thread(new FTPDownloader(downloadData))
.
Upvotes: 1