| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final int | |
| private volatile boolean | |
| public static final String | |
| private static final AtomicInteger | |
| private final Thread |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private List | |
| private void | |
| pack-priv static Map | |
| pack-priv static void | |
| public void | |
| public synchronized void | unwatchPath(File
the path file, final FileChangeCallback the callback callback)Implements org. Stop watching a path. |
| public synchronized void | watchPath(File
The path to watch file, FileChangeCallback The callback callback)Implements org. Watch the given path recursively, and invoke the callback when a change is made. |
| files | back to summary |
|---|---|
| private final Map<File, PollingFileSystemWatcher. | |
| pollInterval | back to summary |
|---|---|
| private final int pollInterval | |
| stopped | back to summary |
|---|---|
| private volatile boolean stopped | |
| THREAD_NAME | back to summary |
|---|---|
| public static final String THREAD_NAME | |
| threadIdCounter | back to summary |
|---|---|
| private static final AtomicInteger threadIdCounter | |
| watchThread | back to summary |
|---|---|
| private final Thread watchThread | |
| PollingFileSystemWatcher | back to summary |
|---|---|
| pack-priv PollingFileSystemWatcher(final String name, int pollInterval, final boolean daemon) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| doDiff | back to summary |
|---|---|
| private List | |
| doNotify | back to summary |
|---|---|
| private void doNotify() | |
| doScan | back to summary |
|---|---|
| pack-priv static Map | |
| invokeCallback | back to summary |
|---|---|
| pack-priv static void invokeCallback(FileChangeCallback callback, List<FileChangeEvent> results) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| unwatchPath | back to summary |
|---|---|
| public synchronized void unwatchPath(File file, final FileChangeCallback callback) Implements org. Doc from org. Stop watching a path.
| |
| watchPath | back to summary |
|---|---|
| public synchronized void watchPath(File file, FileChangeCallback callback) Implements org. Doc from org. Watch the given path recursively, and invoke the callback when a change is made.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final List | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| private |
| callbacks | back to summary |
|---|---|
| pack-priv final List<FileChangeCallback> callbacks | |
| currentFileState | back to summary |
|---|---|
| pack-priv Map<File, Long> currentFileState | |
| PollHolder | back to summary |
|---|---|
| private PollHolder(Map<File, Long> currentFileState) | |