public class WatchmanWatcher extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WatchmanWatcher.CursorType |
static class |
WatchmanWatcher.FreshInstanceAction |
Constructor and Description |
---|
WatchmanWatcher(Watchman watchman,
com.google.common.eventbus.EventBus fileChangeEventBus,
com.google.common.collect.ImmutableSet<PathMatcher> ignorePaths,
Map<AbsPath,WatchmanCursor> cursors,
int numThreads) |
Modifier and Type | Method and Description |
---|---|
void |
postEvents(BuckEventBus buckEventBus,
WatchmanWatcher.FreshInstanceAction freshInstanceAction)
Query Watchman for file change events.
|
public WatchmanWatcher(Watchman watchman, com.google.common.eventbus.EventBus fileChangeEventBus, com.google.common.collect.ImmutableSet<PathMatcher> ignorePaths, Map<AbsPath,WatchmanCursor> cursors, int numThreads)
public void postEvents(BuckEventBus buckEventBus, WatchmanWatcher.FreshInstanceAction freshInstanceAction) throws IOException, InterruptedException
Any diagnostics posted by Watchman are added to watchmanDiagnosticCache.
IOException
InterruptedException