org.duracloud.sync.walker
Class DirWalker

java.lang.Object
  extended by org.apache.commons.io.DirectoryWalker
      extended by 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 Class Summary
 
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)
           
 
Method Summary
protected  void handleFile(java.io.File file, int depth, java.util.Collection results)
           
 void run()
           
static DirWalker start(java.util.List<java.io.File> topDirs)
           
 boolean walkComplete()
           
protected  void walkDirs()
           
 
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
 

Constructor Detail

DirWalker

protected DirWalker(java.util.List<java.io.File> topDirs)
Method Detail

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.