com.bigdata.service.jini.master
Class FileSystemScanner
java.lang.Object
com.bigdata.service.jini.master.AbstractResourceScanner<File>
com.bigdata.service.jini.master.FileSystemScanner
- All Implemented Interfaces:
- Callable<Long>
public class FileSystemScanner
- extends AbstractResourceScanner<File>
Adds all files accepted by the filter to the Queue.
- Version:
- $Id$
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileOrDir
protected final File fileOrDir
filter
protected final FilenameFilter filter
FileSystemScanner
public FileSystemScanner(BlockingBuffer<File[]> buffer,
File fileOrDir,
FilenameFilter filter)
- Parameters:
buffer - Chunks of files to be loaded are added to this buffer.fileOrDir - The file or directory to be loaded.filter - An optional filter on files that will be accepted when
processing a directory.
runScanner
protected void runScanner()
throws Exception
- Description copied from class:
AbstractResourceScanner
- Run the scanner.
- Specified by:
runScanner in class AbstractResourceScanner<File>
- Throws:
Exception
newFactory
public static IResourceScannerFactory<File> newFactory(File fileOrDir,
FilenameFilter filter)
- Factory for factory.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.