|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.sf.gnocchi.GWorker
net.sf.jfilesync.service.unify.UnifyEfficientDuplicateSearchWorker
public class UnifyEfficientDuplicateSearchWorker
| 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 MessageDigestor |
digestor
|
private int |
fileNum
|
private int |
filesDone
|
private UnifyFileTree |
fileTree
|
private static java.util.logging.Logger |
LOGGER
|
private java.util.Map<java.math.BigInteger,java.util.List<UnifyFile>> |
size2FilesMap
|
private int |
SMALL_DIGEST_SIZE_BYTES
|
| 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 | |
|---|---|
UnifyEfficientDuplicateSearchWorker(AbstractConnectionProxy con,
UnifyFileTree fileTree)
|
|
| Method Summary | |
|---|---|
private void |
computeDigest(UnifyFile file)
|
private void |
computeSmallDigest(UnifyFile file)
|
net.sf.gnocchi.GWorkerEvent |
construct()
|
private void |
findDuplicates(java.util.List<BasicFile> fileList)
|
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 |
|---|
private static final java.util.logging.Logger LOGGER
private final UnifyFileTree fileTree
private final AbstractConnectionProxy con
private final java.util.Map<java.math.BigInteger,java.util.List<UnifyFile>> size2FilesMap
private int fileNum
private int filesDone
private final MessageDigestor digestor
private int SMALL_DIGEST_SIZE_BYTES
| Constructor Detail |
|---|
public UnifyEfficientDuplicateSearchWorker(AbstractConnectionProxy con,
UnifyFileTree fileTree)
| Method Detail |
|---|
public net.sf.gnocchi.GWorkerEvent construct()
construct in class net.sf.gnocchi.GWorker
public void task()
throws java.lang.Exception
task in class net.sf.gnocchi.GWorkerjava.lang.Exception
private void findDuplicates(java.util.List<BasicFile> fileList)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
private void computeDigest(UnifyFile file)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
private void computeSmallDigest(UnifyFile file)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||