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 -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidPath Folder watched.Return WatchService.protected voidMethods inherited from class org.opendaylight.yangtools.concepts.AbstractRegistration
addToStringAttributes, close, isClosed, notClosed, toString
-
Constructor Details
-
DefaultFileWatcher
- Throws:
IOException
-
-
Method Details
-
getPathFile
Description copied from interface:FileWatcherPath Folder watched.- Specified by:
getPathFilein interfaceFileWatcher- Returns:
- Path
-
getWatchService
Description copied from interface:FileWatcherReturn WatchService.- Specified by:
getWatchServicein interfaceFileWatcher- Returns:
- WatchService
-
activate
- Throws:
IOException
-
deactivate
@PreDestroy public void deactivate() -
removeRegistration
protected void removeRegistration()- Specified by:
removeRegistrationin classorg.opendaylight.yangtools.concepts.AbstractRegistration
-