public class FileWatcherJob extends Object implements org.quartz.StatefulJob
| Constructor and Description |
|---|
FileWatcherJob() |
| Modifier and Type | Method and Description |
|---|---|
protected List<File> |
checkFiles(File folder,
boolean fileOnly,
boolean recursive,
boolean checkDate,
long lastCheckTime,
org.apache.commons.io.filefilter.IOFileFilter ignoreFilter)
Checks new files and builds the List of files to pass to Observers
|
void |
execute(org.quartz.JobExecutionContext context) |
protected List<File> checkFiles(File folder, boolean fileOnly, boolean recursive, boolean checkDate, long lastCheckTime, org.apache.commons.io.filefilter.IOFileFilter ignoreFilter)
folder - the root folder where to watch filesfileOnly - if true we consider only files; otherwise we also consider foldersrecursive - should we recurse into sub-folderscheckDate - do we need to check the last modification date or in case of false value just return all found fileslastCheckTime - the last check timepublic void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.