net.sf.jfilesync.engine.worker
Class BasicFileDeleteWorker

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

public class BasicFileDeleteWorker
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  AbstractConnectionProxy con
           
private  java.util.List<BasicFile> fileList
           
private static java.util.logging.Logger LOGGER
           
 
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
BasicFileDeleteWorker(AbstractConnectionProxy con, java.util.List<BasicFile> fileList)
           
 
Method Summary
 net.sf.gnocchi.GWorkerEvent construct()
           
private  boolean handleIOException(java.lang.String fileName, java.io.IOException e)
           
protected  void removeFile(BasicFile file)
           
 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

LOGGER

private static final java.util.logging.Logger LOGGER

con

private final AbstractConnectionProxy con

fileList

private final java.util.List<BasicFile> fileList
Constructor Detail

BasicFileDeleteWorker

public BasicFileDeleteWorker(AbstractConnectionProxy con,
                             java.util.List<BasicFile> fileList)
Method Detail

task

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

removeFile

protected void removeFile(BasicFile file)
                   throws java.io.IOException
Throws:
java.io.IOException

handleIOException

private boolean handleIOException(java.lang.String fileName,
                                  java.io.IOException e)

construct

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