|
||||||||||
| 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.engine.worker.BasicFileTreeDeleteWorker
public class BasicFileTreeDeleteWorker
| Nested Class Summary | |
|---|---|
static class |
BasicFileTreeDeleteWorker.DELETE_TYPE
|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private AbstractConnectionProxy |
con
|
private BasicFileTreeDeleteWorker.DELETE_TYPE |
delete_type
|
private BasicFileTree |
fileTree
|
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 | |
|---|---|
BasicFileTreeDeleteWorker(AbstractConnectionProxy con,
BasicFileTree fileTree,
BasicFileTreeDeleteWorker.DELETE_TYPE type)
|
|
| Method Summary | |
|---|---|
net.sf.gnocchi.GWorkerEvent |
construct()
|
protected void |
deleteFileContent(BasicFile file)
|
void |
eraseFiles(BasicFileTree tree)
|
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 |
|---|
private static final java.util.logging.Logger LOGGER
private final AbstractConnectionProxy con
private final BasicFileTree fileTree
private final BasicFileTreeDeleteWorker.DELETE_TYPE delete_type
| Constructor Detail |
|---|
public BasicFileTreeDeleteWorker(AbstractConnectionProxy con,
BasicFileTree fileTree,
BasicFileTreeDeleteWorker.DELETE_TYPE type)
| Method Detail |
|---|
public void task()
throws java.lang.Exception
task in class net.sf.gnocchi.GWorkerjava.lang.Exception
public void eraseFiles(BasicFileTree tree)
throws java.io.IOException
java.io.IOException
protected void deleteFileContent(BasicFile file)
throws java.io.IOException
java.io.IOException
protected void removeFile(BasicFile file)
throws java.io.IOException
java.io.IOException
private boolean handleIOException(java.lang.String fileName,
java.io.IOException e)
public net.sf.gnocchi.GWorkerEvent construct()
construct in class net.sf.gnocchi.GWorker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||