Class FileWatcherImpl
- java.lang.Object
-
- org.opendaylight.bgpcep.config.loader.impl.FileWatcherImpl
-
- All Implemented Interfaces:
AutoCloseable,FileWatcher
public final class FileWatcherImpl extends Object implements FileWatcher, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description FileWatcherImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetPathFile()Path Folder watched.WatchServicegetWatchService()Return WatchService.
-
-
-
Constructor Detail
-
FileWatcherImpl
public FileWatcherImpl() throws IOException- Throws:
IOException
-
-
Method Detail
-
getPathFile
public String getPathFile()
Description copied from interface:FileWatcherPath Folder watched.- Specified by:
getPathFilein interfaceFileWatcher- Returns:
- Path
-
getWatchService
public WatchService getWatchService()
Description copied from interface:FileWatcherReturn WatchService.- Specified by:
getWatchServicein interfaceFileWatcher- Returns:
- WatchService
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-