|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.fileprocessor.DirectoryScanner
public class DirectoryScanner
This class perform a scan of the repository base directory.
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.
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
DirectoryScanner(Repository repository)
Build a new DirectoryScanner for the specified repository. |
Method Summary | |
---|---|
Set<File> |
getFilesToProcess()
Retrieve the set of all the files that have to be processed. |
long |
getLastScanDuration()
Retrieve the last scan duration |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public DirectoryScanner(Repository repository)
repository
- the repository for which this DirectoryScanner will workMethod Detail |
---|
public void scan()
public boolean isRunning()
public Set<File> getFilesToProcess()
public boolean isPartialScan()
public Date getLastScanEndDate()
public long getLastScanDuration()
public long getLastScanFileCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |