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 voidactivate()voiddeactivate()StringgetPathFile()Path Folder watched.WatchServicegetWatchService()Return WatchService.protected voidremoveRegistration()
-
-
-
Constructor Detail
-
DefaultFileWatcher
public DefaultFileWatcher() 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
-
activate
@PostConstruct public void activate() throws IOException- Throws:
IOException
-
deactivate
@PreDestroy public void deactivate()
-
removeRegistration
protected void removeRegistration()
- Specified by:
removeRegistrationin classorg.opendaylight.yangtools.concepts.AbstractRegistration
-
-