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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
Path Folder watched.Return WatchService.protected void
Methods 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:FileWatcher
Path Folder watched.- Specified by:
getPathFile
in interfaceFileWatcher
- Returns:
- Path
-
getWatchService
Description copied from interface:FileWatcher
Return WatchService.- Specified by:
getWatchService
in interfaceFileWatcher
- Returns:
- WatchService
-
activate
- Throws:
IOException
-
deactivate
@PreDestroy public void deactivate() -
removeRegistration
protected void removeRegistration()- Specified by:
removeRegistration
in classorg.opendaylight.yangtools.concepts.AbstractRegistration
-