Path#toRealPath(LinkOption...) of the files scanned and
can be configured to follow symlinks.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Scanner.BulkListener
Notification of files that changed in the last scan. |
| public static interface | Scanner.DiscreteListener
Notification of exact file changes in the last scan. |
| public static interface | Scanner.Listener
Listener Marker for notifications re file changes. |
| private static class | Scanner.MetaData
MetaData Metadata about a file: Last modified time, file size and last file status (ADDED, CHANGED, DELETED, STABLE) |
| pack-priv static enum | |
| pack-priv static class | Scanner.PathMatcherSet
PathMatcherSet A set of PathMatchers for testing Paths against path matching patterns via |
| public static interface | Scanner.ScanCycleListener
Listener that notifies when a scan has started and when it has ended. |
| private class | |
| private static enum | |
| private class | Scanner.Visitor
Visitor A FileVisitor for walking a subtree of paths. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private FilenameFilter | |
| private final LinkOption[] | |
| private final List | |
| private Map | |
| private boolean | |
| private boolean | |
| private final AtomicInteger | |
| private int | |
| private int | |
| private final Map | |
| private boolean | |
| private final Scheduler | |
| private Scheduler. | |
| public static final int | DEFAULT_SCAN_DEPTH
When walking a directory, a depth of 1 ensures that the directory's descendants are visited, not just the directory itself (as a file). |
| private static final Logger | |
| public static final int | |
| private static final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IncludeExcludeSet | Returns: an IncludeExcludeSet to which the caller can add PathMatcher patterns to matchthe directory to scan. p)Add a directory to be scanned. |
| public void | |
| public void | |
| public void | doStart()
Overrides org. |
| public void | |
| public boolean | |
| public FilenameFilter | Returns: the filename filter
Deprecated
Get any filter applied to files in the scan dir.
|
| public boolean | |
| public boolean | |
| public int | |
| public int | |
| public Set | |
| public boolean | Returns: true if scanning should start automatically, false to have scanning is deferred to a later manual call tostartScanning()Test if scanning should start automatically with |
| public void | |
| public void | |
| private void | |
| private void | reportBulkChanges(Set<Path>
The paths of all files added/changed/removed paths)Report the list of filenames for which changes were detected. |
| private void | |
| private void | |
| private void | reportRemoval(Path
the path of the removed filename path)Report a file removal to the FileRemovedListeners |
| private void | |
| private void | |
| public void | |
| public void | |
| pack-priv void | |
| private Map | |
| private void | |
| public void | setAutoStartScanning(boolean
true if scanning should start automatically, false to defer start of scanning to a later call to autostart)startScanning()Flag to control scanning auto start feature. |
| public void | setFilenameFilter(FilenameFilter
the filename filter to use filter)
Deprecated
Apply a filter to files found in the scan directory.
|
| public void | setReportDirs(boolean
true to report directory changes as well dirs)Set if found directories should be reported. |
| public void | setReportExistingFilesOnStartup(boolean
if true, all files found on initial scan will be
reported as being added, otherwise not reportExisting)Whether or not an initial scan will report all files as being added. |
| public void | |
| public void | |
| public void | setScanInterval(int
pause between scans in seconds, or 0 for no scan after the initial scan. scanInterval)Set the scan interval |
| public void | |
| private void |