Connecting to an FTP server with edtFTPj/PRO is simply a matter of:
FTPClient ftp = new FTPClient();
ftp.setRemoteHost(host);
ftp.connect();
ftp.login(username, password);
ftp.quit();
The connect() call will return when it's successfully connected, or throw an exception if it fails to connect. Similarly, the login() call will return when successfully logged into the server.