public class DirectoryScanner
extends java.lang.Object
It lists all the files to process.
This scanner will not process more files in once scan than the number specified in the
repository configuration through property "maxFilesPerScan", which default value is 50000.
The remaining files will be processed during the next invocation to the scanner.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
DirectoryScanner(Repository repository)
Build a new DirectoryScanner for the specified repository.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.io.File> |
getFilesToProcess()
Retrieve the set of all the files that have to be processed.
|
long |
getLastScanDuration()
Retrieve the last scan duration
|
java.util.Date |
getLastScanEndDate()
Retrieve the last scan date
|
long |
getLastScanFileCount()
Retrieve the number of files found in the last scan
|
boolean |
isPartialScan()
Check if the last scan was interrupted because the maximum number of file per scan was reached.
|
boolean |
isRunning()
Check if this directory scanner is currently running.
|
void |
scan()
Scan recursively the repository's directory and maintains in memory all files that have to be process,
it associates FILE_CREATE_OR_UPDATE operation.
|
public static final java.lang.String REVISION
public DirectoryScanner(Repository repository)
repository
- the repository for which this DirectoryScanner will workpublic void scan()
public boolean isRunning()
public java.util.Set<java.io.File> getFilesToProcess()
public boolean isPartialScan()
public java.util.Date getLastScanEndDate()
public long getLastScanDuration()
public long getLastScanFileCount()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.