org.duracloud.sync.walker
Class DirWalker
java.lang.Object
org.apache.commons.io.DirectoryWalker
org.duracloud.sync.walker.DirWalker
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- RestartDirWalker
public class DirWalker
- extends org.apache.commons.io.DirectoryWalker
- implements java.lang.Runnable
Handles the walking of a set of directory trees. Each file found in the
tree is added to the changed file list. This is the starting point
for synchronization.
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker |
org.apache.commons.io.DirectoryWalker.CancelException |
Constructor Summary |
protected |
DirWalker(java.util.List<java.io.File> topDirs)
|
Methods inherited from class org.apache.commons.io.DirectoryWalker |
checkIfCancelled, handleCancelled, handleDirectory, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirWalker
protected DirWalker(java.util.List<java.io.File> topDirs)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
walkDirs
protected void walkDirs()
handleFile
protected void handleFile(java.io.File file,
int depth,
java.util.Collection results)
- Overrides:
handleFile
in class org.apache.commons.io.DirectoryWalker
start
public static DirWalker start(java.util.List<java.io.File> topDirs)
walkComplete
public boolean walkComplete()
Copyright © 2009-2010 DuraSpace. All Rights Reserved.