Class FileWatcher

    • Field Detail

      • DEFAULT_CHECK_INTERVAL_MS

        public static final long DEFAULT_CHECK_INTERVAL_MS
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileWatcher

        public FileWatcher​(@NotNull
                           java.io.File file)
        Parameters:
        file - file to watch changes in. May denote a directory as well, its lastModified attribute will be monitored for the change
      • FileWatcher

        public FileWatcher​(@NotNull
                           java.io.File file,
                           @NotNull
                           java.util.concurrent.ScheduledExecutorService scheduler)
        Parameters:
        scheduler - executor that will be used to schedule watcher tasks
        file - file to watch changes in. May denote a directory as well, its lastModified attribute will be monitored for the change
    • Method Detail

      • getRequestor

        public java.lang.String getRequestor()
        Description copied from interface: ChangeProvider
        Returns (short) string representation of this change source
        Specified by:
        getRequestor in interface ChangeProvider
        Returns:
        (short) string representation of this change source
      • getFile

        @NotNull
        public java.io.File getFile()
        Returns:
        monitored file
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describe

        @NotNull
        public java.lang.String describe​(boolean verbose)
        Specified by:
        describe in interface jetbrains.buildServer.log.Loggable