net.sf.jfilesync.sync2
Class SyncTreeBuilder2
java.lang.Object
java.lang.Thread
net.sf.gnocchi.GWorker
net.sf.jfilesync.sync2.SyncTreeBuilder2
- All Implemented Interfaces:
- java.lang.Runnable
public class SyncTreeBuilder2
- extends net.sf.gnocchi.GWorker
| Nested classes/interfaces inherited from class java.lang.Thread |
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| 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 |
| 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 |
LOGGER
private static final java.util.logging.Logger LOGGER
observer
private final net.sf.gnocchi.GWorkerObserver observer
worker
private net.sf.gnocchi.GWorker worker
tree
private SyncTree tree
con
private final AbstractConnectionProxy con
path
private final java.lang.String path
dataSorter
private final TFileDataSorter dataSorter
numFiles
private int numFiles
opt_follow_symlinks
private boolean opt_follow_symlinks
opt_fat_mode
private boolean opt_fat_mode
includeList
private ExpressionList includeList
excludeList
private ExpressionList excludeList
SyncTreeBuilder2
public SyncTreeBuilder2(AbstractConnectionProxy con,
java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
loadSettings
private void loadSettings()
setIncludeExpressionList
public void setIncludeExpressionList(ExpressionList list)
setExcludeExpressionList
public void setExcludeExpressionList(ExpressionList list)
setFatModeEnabled
public void setFatModeEnabled(boolean enabled)
init
private void init()
throws java.io.IOException
- Throws:
java.io.IOException
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
setViewStateOfTree
private void setViewStateOfTree()
setViewState
private boolean setViewState(SyncFile file)
excludeChilds
private void excludeChilds(SyncFile dir)
inIncludeList
private boolean inIncludeList(SyncFile file)
inExcludeList
private boolean inExcludeList(SyncFile file)
fatModTime
private long fatModTime(long time)