net.sf.jfilesync.service.unify.worker
Class UnifyDeletePerformer

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.gnocchi.GWorker
          extended by net.sf.jfilesync.service.unify.worker.UnifyDeletePerformer
All Implemented Interfaces:
java.lang.Runnable, net.sf.gnocchi.GWorkerListener

public class UnifyDeletePerformer
extends net.sf.gnocchi.GWorker
implements net.sf.gnocchi.GWorkerListener


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  int actionNum
           
private  int actionsDone
           
private  AbstractConnectionProxy con
           
private  net.sf.gnocchi.GWorkerObserver observer
           
private  UnifyDeleteOption option
           
 
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
UnifyDeletePerformer(AbstractConnectionProxy con, UnifyDeleteOption option)
           
 
Method Summary
 net.sf.gnocchi.GWorkerEvent construct()
           
private  int getProgressPercentage()
           
 void task()
           
 void updateModel(net.sf.gnocchi.GWorkerEvent e)
           
 void workerCancelled(net.sf.gnocchi.GWorkerEvent e)
           
 void workerDied(net.sf.gnocchi.GWorkerEvent e)
           
 void workerDone(net.sf.gnocchi.GWorkerEvent e)
           
 
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

option

private final UnifyDeleteOption option

con

private final AbstractConnectionProxy con

observer

private final net.sf.gnocchi.GWorkerObserver observer

actionNum

private int actionNum

actionsDone

private int actionsDone
Constructor Detail

UnifyDeletePerformer

public UnifyDeletePerformer(AbstractConnectionProxy con,
                            UnifyDeleteOption option)
Method Detail

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

updateModel

public void updateModel(net.sf.gnocchi.GWorkerEvent e)
Specified by:
updateModel in interface net.sf.gnocchi.GWorkerListener

getProgressPercentage

private int getProgressPercentage()

workerCancelled

public void workerCancelled(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerCancelled in interface net.sf.gnocchi.GWorkerListener

workerDied

public void workerDied(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerDied in interface net.sf.gnocchi.GWorkerListener

workerDone

public void workerDone(net.sf.gnocchi.GWorkerEvent e)
Specified by:
workerDone in interface net.sf.gnocchi.GWorkerListener