Class FileFetcher

  • All Implemented Interfaces:
    JSyncConstants, JaliosConstants, java.lang.Runnable

    public class FileFetcher
    extends java.lang.Object
    implements java.lang.Runnable, JSyncConstants
    This class spawns a thread to download a set of file
    Author:
    Olivier Dedieu
    • Constructor Detail

      • FileFetcher

        public FileFetcher​(JSyncReplica jsyncReplica,
                           java.io.File tgtDir,
                           java.io.File downloadDir,
                           long downloadInterval)
        Since:
        jcms-4.1
    • Method Detail

      • addDownloadFile

        public void addDownloadFile​(java.util.Set<FileEntry> fileSet,
                                    java.lang.String urid)
        Add new file to download
        Parameters:
        fileSet - a set of FileEntry to download
        urid - the urid of the send
        Since:
        jcms-5.0.4
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • close

        public void close()
        Terminate this file fetcher and its thread.