net.sf.jfilesync.sync2
Class ConcurrentSyncTreeBuilder

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.gnocchi.GWorker
          extended by net.sf.jfilesync.sync2.ConcurrentSyncTreeBuilder
All Implemented Interfaces:
java.lang.Runnable, net.sf.gnocchi.GWorkerListener, TAbstractGUIElementListener

public class ConcurrentSyncTreeBuilder
extends net.sf.gnocchi.GWorker
implements net.sf.gnocchi.GWorkerListener, TAbstractGUIElementListener


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  AbstractConnectionProxy con1
           
private  AbstractConnectionProxy con2
           
private  ConnectionDetails conDetails1
           
private  ConnectionDetails conDetails2
           
private static java.util.logging.Logger LOGGER
           
private  net.sf.gnocchi.GWorkerObserver observer
           
private  java.awt.Component parent
           
private  java.lang.String path1
           
private  java.lang.String path2
           
private  SyncSettings settings
           
private  SyncTreeBuilderDialog statsDialog
           
private  SyncTree tree1
           
private  SyncTree tree2
           
private  net.sf.gnocchi.GWorker worker1
           
private  boolean worker1Done
           
private  net.sf.gnocchi.GWorker worker2
           
private  boolean worker2Done
           
 
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
ConcurrentSyncTreeBuilder(java.awt.Component parent, int syncID, AbstractConnectionProxy con1, java.lang.String path1, ConnectionDetails conDetails1, AbstractConnectionProxy con2, java.lang.String path2, ConnectionDetails conDetails2)
           
 
Method Summary
 void cancelClicked(TAbstractDialogEvent e)
           
 net.sf.gnocchi.GWorkerEvent construct()
           
 int getSyncID()
           
 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

LOGGER

private static java.util.logging.Logger LOGGER

observer

private final net.sf.gnocchi.GWorkerObserver observer

worker1

private net.sf.gnocchi.GWorker worker1

worker2

private net.sf.gnocchi.GWorker worker2

statsDialog

private SyncTreeBuilderDialog statsDialog

parent

private final java.awt.Component parent

con1

private final AbstractConnectionProxy con1

con2

private final AbstractConnectionProxy con2

path1

private final java.lang.String path1

path2

private final java.lang.String path2

tree1

private SyncTree tree1

tree2

private SyncTree tree2

conDetails1

private final ConnectionDetails conDetails1

conDetails2

private final ConnectionDetails conDetails2

worker1Done

private boolean worker1Done

worker2Done

private boolean worker2Done

settings

private final SyncSettings settings
Constructor Detail

ConcurrentSyncTreeBuilder

public ConcurrentSyncTreeBuilder(java.awt.Component parent,
                                 int syncID,
                                 AbstractConnectionProxy con1,
                                 java.lang.String path1,
                                 ConnectionDetails conDetails1,
                                 AbstractConnectionProxy con2,
                                 java.lang.String path2,
                                 ConnectionDetails conDetails2)
Method Detail

getSyncID

public int getSyncID()

task

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

construct

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

workerDone

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

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

updateModel

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

cancelClicked

public void cancelClicked(TAbstractDialogEvent e)
Specified by:
cancelClicked in interface TAbstractGUIElementListener