I am writing a client for a backup server. My client plans some folders for backup. (for example: every Friday at hour X). I use cron4j for planning (Linux cron port for java).
Everything works well, until I plan at the same time several downloadable tasks, and then due to several threads it becomes messy.
Can someone help me with a solution for multi-threaded uploads to an ftp server? (each thread has a task for loading a directory on the Ftp server).
, , , ""? - ?
, , , , , , , - FTP- , . , , , , . , .
, , cron4j , FTP, ?
, , cron4j , , FTP , . runnable ( java.util.concurrent ). , , ( , , ). , (, 4 ).
, SEDA . Java, Doug Lea " Java: ", Java 5, , . Java-.
ipworks FTP . Java Concurrency ...
public class ServerConnection extends Thread { // the connection to the ftp server private final Ftp connection;
Runnable executorService, ...