net.sf.jfilesync.engine
Class BasicFileCopyWorker

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.gnocchi.GWorker
          extended by net.sf.jfilesync.engine.BasicFileCopyWorker
All Implemented Interfaces:
java.lang.Runnable

public class BasicFileCopyWorker
extends net.sf.gnocchi.GWorker


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.util.List<FileCopyListener> copyListeners
           
private  AbstractConnectionProxy sourceCon
           
private  java.lang.String sourceRootPath
           
private  BasicFileTree sourceTree
           
private  java.lang.String targetRootPath
           
 
Fields inherited from class net.sf.gnocchi.GWorker
STATE_DIED, STATE_DONE, STATE_INTERRUPTED, STATE_READY, STATE_RUNNING
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BasicFileCopyWorker(AbstractConnectionProxy sourceCon, java.lang.String sourceRootPath, java.lang.String targetRootPath, BasicFileTree sourceTree)
           
 
Method Summary
 void addFileCopyListener(FileCopyListener listener)
           
 net.sf.gnocchi.GWorkerEvent construct()
           
private  void setTransferOptions(FileTransfer2 transfer)
           
 void task()
           
 
Methods inherited from class net.sf.gnocchi.GWorker
addObserver, cancel, customCancel, getException, getObserver, getWorkerState, hasDied, isCancelled, isDone, isFinished, isRunning, run, setDied
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceCon

private final AbstractConnectionProxy sourceCon

sourceRootPath

private final java.lang.String sourceRootPath

targetRootPath

private final java.lang.String targetRootPath

sourceTree

private final BasicFileTree sourceTree

copyListeners

private final java.util.List<FileCopyListener> copyListeners
Constructor Detail

BasicFileCopyWorker

public BasicFileCopyWorker(AbstractConnectionProxy sourceCon,
                           java.lang.String sourceRootPath,
                           java.lang.String targetRootPath,
                           BasicFileTree sourceTree)
Method Detail

addFileCopyListener

public void addFileCopyListener(FileCopyListener listener)

construct

public net.sf.gnocchi.GWorkerEvent construct()
Specified by:
construct in class net.sf.gnocchi.GWorker

task

public void task()
          throws java.lang.Exception
Specified by:
task in class net.sf.gnocchi.GWorker
Throws:
java.lang.Exception

setTransferOptions

private void setTransferOptions(FileTransfer2 transfer)