Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure how to do it with Jenkins, but if you want to monitor an FTP location for changes (i.e. receive notifications when files added/removed/modified in a directory) using plain java, then the following library can help you with the actual polling/notification mechanism: <a href="https://github.com/drapostolos/rdp4j" rel="noreferrer">https://github.com/drapostolos/rdp4j</a> (<strong>Remote Directory Poller for Java</strong>).</p> <p>Simple usage example of the API:</p> <pre><code>package example import java.util.concurrent.TimeUnit; import com.github.drapostolos.rdp4j.DirectoryPoller; import com.github.drapostolos.rdp4j.spi.PolledDirectory; public class FtpExample { public static void main(String[] args) throws Exception { String host = "ftp.mozilla.org"; String workingDirectory = "pub/addons"; String username = "anonymous"; String password = "anonymous"; PolledDirectory polledDirectory = new FtpDirectory(host, workingDirectory, username, password); DirectoryPoller dp = DirectoryPoller.newBuilder() .addPolledDirectory(polledDirectory) .addListener(new MyListener()) .setPollingInterval(10, TimeUnit.MINUTES) .start(); TimeUnit.HOURS.sleep(2); dp.stop(); } } </code></pre> <p>The RDP4J <a href="https://github.com/drapostolos/rdp4j/wiki/User-Guide" rel="noreferrer">User Guide</a>:</p> <ul> <li>provides an example of <code>FtpDirectory</code> class which lists files in an FTP location using appache commons <code>FTPClient</code></li> <li>describes what events <code>MyListener</code> can listen for</li> <li>How to configure the <code>DirectoryPoller</code></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload