Modifier and Type | Field and Description |
---|---|
static String |
NULL_CLOCK |
static Watchman |
NULL_WATCHMAN |
Constructor and Description |
---|
WatchmanFactory() |
WatchmanFactory(com.facebook.buck.io.watchman.WatchmanFactory.InitialWatchmanClientFactory factory) |
Modifier and Type | Method and Description |
---|---|
Watchman |
build(com.google.common.collect.ImmutableSet<AbsPath> projectWatchList,
com.google.common.collect.ImmutableMap<String,String> env,
Console console,
Clock clock,
Optional<Long> commandTimeoutMillis) |
static WatchmanClient |
createWatchmanClient(Path transportPath,
Console console,
Clock clock) |
static Watchman |
getWatchman(WatchmanClient client,
Path transportPath,
com.google.common.collect.ImmutableSet<AbsPath> projectWatchList,
Console console,
Clock clock,
long endTimeNanos)
Query Watchman's capabilities and watch the given directories.
|
public static final String NULL_CLOCK
public static final Watchman NULL_WATCHMAN
public WatchmanFactory()
public WatchmanFactory(com.facebook.buck.io.watchman.WatchmanFactory.InitialWatchmanClientFactory factory)
public Watchman build(com.google.common.collect.ImmutableSet<AbsPath> projectWatchList, com.google.common.collect.ImmutableMap<String,String> env, Console console, Clock clock, Optional<Long> commandTimeoutMillis) throws InterruptedException
Watchman
using the specified params.InterruptedException
public static Watchman getWatchman(WatchmanClient client, Path transportPath, com.google.common.collect.ImmutableSet<AbsPath> projectWatchList, Console console, Clock clock, long endTimeNanos) throws IOException, InterruptedException
IOException
InterruptedException
public static WatchmanClient createWatchmanClient(Path transportPath, Console console, Clock clock) throws IOException
IOException