public class DirectoryMonitorModule extends AbstractDaemonModule
Modifier and Type | Field and Description |
---|---|
protected java.nio.file.WatchService |
directoryWatcher |
isDaemon, runner
config, 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, submitEvent
getConfig, getHash, isSelected, setConfig, supportsThisOS, toString
public void register(java.nio.file.Path directory, boolean recursive)
protected void observe() throws java.lang.InterruptedException
observe
in class AbstractDaemonModule
java.lang.InterruptedException
public void start()
start
in class AbstractDaemonModule
public void stop()
stop
in class AbstractDaemonModule
protected void createWatcher()
public void setModuleName()
AbstractModule
setModuleName
in class AbstractModule
public static void main(java.lang.String[] args)
public java.lang.String getModuleDescription()
getModuleDescription
in class AbstractModule