Package org.duracloud.sync.mgmt
Class SyncWorker
- java.lang.Object
-
- org.duracloud.sync.mgmt.SyncWorker
-
-
Constructor Summary
Constructors Constructor Description SyncWorker(ChangedFile file, File watchDir, SyncEndpoint endpoint)Creates a SyncWorker to handle syncing a file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoredFilegetMonitoredFile()booleanisComplete()voidrun()
-
-
-
Constructor Detail
-
SyncWorker
public SyncWorker(ChangedFile file, File watchDir, SyncEndpoint endpoint)
Creates a SyncWorker to handle syncing a file- Parameters:
file- the file to syncwatchDir- dir under watch where file exists or null if file does not reside in a watched directoryendpoint- the endpoint to which the file should be synced
-
-
Method Detail
-
isComplete
public boolean isComplete()
-
getMonitoredFile
public MonitoredFile getMonitoredFile()
-
-