Package org.duracloud.sync.walker
Class DirWalker
java.lang.Object
org.apache.commons.io.DirectoryWalker
org.duracloud.sync.walker.DirWalker
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RestartDirWalker
Handles the walking of a set of directory trees. Each file found in the
tree is added to the changed file list. Any files found among the listed
directories will also be added to the changed file list. This is the
starting point for synchronization.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker
org.apache.commons.io.DirectoryWalker.CancelException -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDirWalker(List<File> filesAndDirs, FileExclusionManager fileExclusionManager) -
Method Summary
Modifier and TypeMethodDescriptionintprotected booleanhandleDirectory(File directory, int depth, Collection results) protected voidhandleFile(File file, int depth, Collection results) protected booleanhandleIsCancelled(File file, int depth, Collection results) voidrun()static DirWalkerstart(List<File> topDirs, FileExclusionManager fileExclusionManager) voidstopWalk()booleanprotected voidwalkDirs()Methods inherited from class org.apache.commons.io.DirectoryWalker
checkIfCancelled, filterDirectoryContents, handleCancelled, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleRestricted, handleStart, walk
-
Field Details
-
changedList
-
fileExclusionManager
-
-
Constructor Details
-
DirWalker
-
-
Method Details
-
run
public void run() -
stopWalk
public void stopWalk() -
walkDirs
protected void walkDirs() -
handleDirectory
- Overrides:
handleDirectoryin classorg.apache.commons.io.DirectoryWalker- Throws:
IOException
-
handleFile
- Overrides:
handleFilein classorg.apache.commons.io.DirectoryWalker
-
handleIsCancelled
- Overrides:
handleIsCancelledin classorg.apache.commons.io.DirectoryWalker- Throws:
IOException
-
start
-
walkComplete
public boolean walkComplete() -
getFilesCount
public int getFilesCount()
-