Class DefaultFileWatcher
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractRegistration
-
- org.opendaylight.bgpcep.config.loader.impl.DefaultFileWatcher
-
- All Implemented Interfaces:
AutoCloseable
,FileWatcher
,org.opendaylight.yangtools.concepts.Registration
@Singleton public final class DefaultFileWatcher extends org.opendaylight.yangtools.concepts.AbstractRegistration implements FileWatcher
-
-
Constructor Summary
Constructors Constructor Description DefaultFileWatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
void
deactivate()
String
getPathFile()
Path Folder watched.WatchService
getWatchService()
Return WatchService.protected void
removeRegistration()
-
-
-
Constructor Detail
-
DefaultFileWatcher
public DefaultFileWatcher() 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
-
activate
@PostConstruct public void activate() throws IOException
- Throws:
IOException
-
deactivate
@PreDestroy public void deactivate()
-
removeRegistration
protected void removeRegistration()
- Specified by:
removeRegistration
in classorg.opendaylight.yangtools.concepts.AbstractRegistration
-
-