Interface PollingFileSource

  • All Superinterfaces:
    EventSource<FileEvent>, PollingSource<FileEvent>, Runnable
    All Known Implementing Classes:
    FileEventActivitySource, FileEventSource

    @ConfigurationDescription(properties={@Property(name="SearchDirectoryPath",description="The path of the directory which causes an event when a new file is inserted."),,,,,,,})
    public interface PollingFileSource
    extends PollingSource<FileEvent>
    An event source causing an event based on the presence of a file. This may be a file that has been stored to a special folder.
    An ordinary implementation of this file source creates an event for each file (and possibly also a directory) present in the folder. This is good for mostly empty folders. Filters may apply for specific files. It is not advised to track the files internally and only create events for new files and ignore existing files. This should be rather solved with an event handler moving a file that has been successfully handled so that the file source does not find the file again.
    • Field Detail

      • CONF_SEARCH_DIRECTORY

        static final String CONF_SEARCH_DIRECTORY
        Configuration key for the directory in which to look for the files that cause the events of this event source.
        See Also:
        Constant Field Values
      • CONF_FILENAME_FILTER

        static final String CONF_FILENAME_FILTER
        Configuration key for the file name filter.
        See Also:
        Constant Field Values
      • CONF_SKIP_DIRECTORIES

        static final String CONF_SKIP_DIRECTORIES
        Configuration key for the skip directories filter.
        See Also:
        Constant Field Values
      • CONF_SKIP_LOCKED

        static final String CONF_SKIP_LOCKED
        Configuration key for the skip locked files filter.
        See Also:
        Constant Field Values
      • CONF_LOCK_FILE_EVENT

        static final String CONF_LOCK_FILE_EVENT
        Configuration key for the lock file event flag.
        See Also:
        Constant Field Values
      • CONF_IS_LOCK_FILE

        static final String CONF_IS_LOCK_FILE
        Configuration key for the is lock file flag.
        See Also:
        Constant Field Values