public class DirectoryMonitorModule extends AbstractDaemonModule
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.WatchService |
directoryWatcher |
isDaemon, runnerconfig, moduleName, version| Constructor and Description |
|---|
DirectoryMonitorModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createWatcher() |
java.lang.String |
getModuleDescription() |
static void |
main(java.lang.String[] args) |
protected void |
observe() |
void |
register(java.nio.file.Path directory,
boolean recursive) |
void |
setModuleName()
By implementing this abstract method the name of the module is specified.
|
void |
start() |
void |
stop() |
create, isRunning, run, setSelected, setVersion, submitEventgetConfig, getHash, isSelected, setConfig, supportsThisOS, toStringpublic void register(java.nio.file.Path directory,
boolean recursive)
protected void observe()
throws java.lang.InterruptedException
observe in class AbstractDaemonModulejava.lang.InterruptedExceptionpublic void start()
start in class AbstractDaemonModulepublic void stop()
stop in class AbstractDaemonModuleprotected void createWatcher()
public void setModuleName()
AbstractModulesetModuleName in class AbstractModulepublic static void main(java.lang.String[] args)
public java.lang.String getModuleDescription()
getModuleDescription in class AbstractModule