Class FileFetcher

java.lang.Object
com.jalios.jstore.jsync.FileFetcher
All Implemented Interfaces:
JSyncConstants, JaliosConstants, Runnable

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

    • FileFetcher

      public FileFetcher(JSyncReplica jsyncReplica, File tgtDir, File downloadDir, long downloadInterval)
      Since:
      jcms-4.1
  • Method Details

    • addDownloadFile

      public void addDownloadFile(Set<FileEntry> fileSet, 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 Runnable
    • close

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