public abstract class Watchman extends Object
Constructor and Description |
---|
Watchman(com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> projectWatches,
com.google.common.collect.ImmutableSet<Capability> capabilities,
com.google.common.collect.ImmutableMap<String,String> clockIds,
Optional<Path> transportPath,
String version) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<AbsPath,WatchmanCursor> |
buildClockWatchmanCursorMap()
Build.
|
com.google.common.collect.ImmutableMap<AbsPath,WatchmanCursor> |
buildNamedWatchmanCursorMap()
Build.
|
abstract WatchmanClient |
createClient()
Note this method will throw an
IOException if:
getTransportPath() returns Optional.empty()
It cannot establish a connection to Watchman. |
com.google.common.collect.ImmutableSet<Capability> |
getCapabilities() |
com.google.common.collect.ImmutableMap<String,String> |
getClockIds() |
com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> |
getProjectWatches() |
Optional<Path> |
getTransportPath() |
String |
getVersion() |
boolean |
hasWildmatchGlob() |
public Watchman(com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> projectWatches, com.google.common.collect.ImmutableSet<Capability> capabilities, com.google.common.collect.ImmutableMap<String,String> clockIds, Optional<Path> transportPath, String version)
public com.google.common.collect.ImmutableMap<AbsPath,WatchmanCursor> buildClockWatchmanCursorMap()
public com.google.common.collect.ImmutableMap<AbsPath,WatchmanCursor> buildNamedWatchmanCursorMap()
public com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> getProjectWatches()
public com.google.common.collect.ImmutableSet<Capability> getCapabilities()
public boolean hasWildmatchGlob()
public String getVersion()
public abstract WatchmanClient createClient() throws IOException
IOException
if:
getTransportPath()
returns Optional.empty()
IOException