Package io.jenkins.blueocean.dev
Class RecursivePathWatcher
- java.lang.Object
-
- io.jenkins.blueocean.dev.RecursivePathWatcher
-
public class RecursivePathWatcher extends Object
Recursively watches directories for file changes only notifies when files are added, modified, or deleted but tracks all added/removed directories.- Author:
- Keith Zantow <kzantow@gmail.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecursivePathWatcher.Event
Events to listen to fromstart(PathEventHandler)
static interface
RecursivePathWatcher.PathEventHandler
Used to receive events fromstart(PathEventHandler)
static interface
RecursivePathWatcher.PathFilter
Allows filtering of specific subtrees
-
Constructor Summary
Constructors Constructor Description RecursivePathWatcher(Path root)
RecursivePathWatcher(Path root, RecursivePathWatcher.PathFilter pathFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(RecursivePathWatcher.PathEventHandler eventHandler)
void
terminate()
-
-
-
Constructor Detail
-
RecursivePathWatcher
public RecursivePathWatcher(Path root)
-
RecursivePathWatcher
public RecursivePathWatcher(Path root, RecursivePathWatcher.PathFilter pathFilter)
-
-
Method Detail
-
start
public void start(RecursivePathWatcher.PathEventHandler eventHandler)
-
terminate
public void terminate()
-
-