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 Details

  • Method Details

    • getPathFile

      public String getPathFile()
      Description copied from interface: FileWatcher
      Path Folder watched.
      Specified by:
      getPathFile in interface FileWatcher
      Returns:
      Path
    • getWatchService

      public WatchService getWatchService()
      Description copied from interface: FileWatcher
      Return WatchService.
      Specified by:
      getWatchService in interface FileWatcher
      Returns:
      WatchService
    • activate

      @PostConstruct public void activate() throws IOException
      Throws:
      IOException
    • deactivate

      @PreDestroy public void deactivate()
    • removeRegistration

      protected void removeRegistration()
      Specified by:
      removeRegistration in class org.opendaylight.yangtools.concepts.AbstractRegistration