org.duracloud.sync.mgmt
Class SyncWorker

java.lang.Object
  extended by 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 Summary
SyncWorker(ChangedFile file, File watchDir, SyncEndpoint endpoint)
          Creates a SyncWorker to handle syncing a file
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncWorker

public SyncWorker(ChangedFile file,
                  File watchDir,
                  SyncEndpoint endpoint)
Creates a SyncWorker to handle syncing a file

Parameters:
file - the file to sync
endpoint - the endpoint to which the file should be synced
Method Detail

run

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


Copyright © 2009-2011 DuraSpace. All Rights Reserved.