Class SyncWorker

java.lang.Object
org.duracloud.sync.mgmt.SyncWorker
All Implemented Interfaces:
Runnable

public class SyncWorker extends Object implements Runnable
Handles the syncing of a single changed file using the given endpoint.
  • Constructor Details

    • SyncWorker

      public SyncWorker(ChangedFile file, File watchDir, SyncEndpoint endpoint)
      Creates a SyncWorker to handle syncing a file
      Parameters:
      file - the file to sync
      watchDir - dir under watch where file exists or null if file does not reside in a watched directory
      endpoint - the endpoint to which the file should be synced
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • isComplete

      public boolean isComplete()
    • getMonitoredFile

      public MonitoredFile getMonitoredFile()