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 void
close()
String
getPathFile()
Path Folder watched.WatchService
getWatchService()
Return WatchService.
-
-
-
Constructor Detail
-
FileWatcherImpl
public FileWatcherImpl() throws IOException
- Throws:
IOException
-
-
Method Detail
-
getPathFile
public String getPathFile()
Description copied from interface:FileWatcher
Path Folder watched.- Specified by:
getPathFile
in interfaceFileWatcher
- Returns:
- Path
-
getWatchService
public WatchService getWatchService()
Description copied from interface:FileWatcher
Return WatchService.- Specified by:
getWatchService
in interfaceFileWatcher
- Returns:
- WatchService
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-