Package adams.core.io.dirchanged
Interface DirChangeMonitor
-
- All Known Implementing Classes:
AbstractDirChangeMonitor,AbstractMessageDigestBasedMonitor,FlowFileDigest,LastModified,MessageDigest,MultiMonitor,NoChange,Size
public interface DirChangeMonitorInterface for directory change monitors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilegetMonitoredDir()Returns the dir that is being monitored.booleanhasChanged(File dir)Checks whether the dir has changed.Stringinitialize(File dir)Initializes the monitor with the specified dir.booleanisInitialized(File dir)Checks whether the monitor has been initialized with the specified dir.Stringupdate(File dir)Updates the monitor with the specified dir.
-
-
-
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)
-
-