Interface DirChangeMonitor

    • Method Detail

      • isInitialized

        boolean isInitialized​(File dir)
        Checks whether the monitor has been initialized with the specified dir.
        Parameters:
        dir - the dir to check
        Returns:
        true if setup for this file
        See Also:
        initialize(File)
      • initialize

        String initialize​(File dir)
        Initializes the monitor with the specified dir.
        Parameters:
        dir - the dir to initialize with
        Returns:
        null if successful, otherwise error message
      • getMonitoredDir

        File getMonitoredDir()
        Returns the dir that is being monitored.
        Returns:
        the dir, null if not initialized
      • hasChanged

        boolean hasChanged​(File dir)
        Checks whether the dir has changed. Must be initialized beforehand.
        Parameters:
        dir - the fildire to check
        Returns:
        true if changed
        See Also:
        isInitialized(File), initialize(File)
      • update

        String update​(File dir)
        Updates the monitor with the specified dir.
        Parameters:
        dir - the dir to update with
        Returns:
        null if successful, otherwise error message