public class NativeFileWatcherImpl extends PluggableFileWatcher
EP_NAME
Constructor and Description |
---|
NativeFileWatcherImpl() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected java.io.File |
getExecutable()
Subclasses should override this method to provide a custom binary to run.
|
static java.io.File |
getFSNotifierExecutable() |
void |
initialize(ManagingFS managingFS,
FileWatcherNotificationSink notificationSink) |
protected boolean |
isDisabled()
Subclasses should override this method if they want to use custom logic to disable their file watcher.
|
boolean |
isOperational() |
protected boolean |
isRepetition(java.lang.String path) |
boolean |
isSettingRoots() |
void |
resetChangedPaths() |
void |
setWatchRoots(java.util.List<java.lang.String> recursive,
java.util.List<java.lang.String> flat)
The inputs to this method must be absolute and free of symbolic links.
|
void |
shutdown() |
void |
startup() |
public void initialize(ManagingFS managingFS, FileWatcherNotificationSink notificationSink)
initialize
in class PluggableFileWatcher
public void dispose()
dispose
in class PluggableFileWatcher
public boolean isOperational()
isOperational
in class PluggableFileWatcher
public boolean isSettingRoots()
isSettingRoots
in class PluggableFileWatcher
public void setWatchRoots(java.util.List<java.lang.String> recursive, java.util.List<java.lang.String> flat)
PluggableFileWatcher
setWatchRoots
in class PluggableFileWatcher
protected boolean isDisabled()
protected java.io.File getExecutable()
public static java.io.File getFSNotifierExecutable()
public void resetChangedPaths()
resetChangedPaths
in class PluggableFileWatcher
protected boolean isRepetition(java.lang.String path)
public void startup() throws java.io.IOException
startup
in class PluggableFileWatcher
java.io.IOException
public void shutdown() throws java.lang.InterruptedException
shutdown
in class PluggableFileWatcher
java.lang.InterruptedException