public class FileEventActivitySource extends FileEventSource
FileEventSource.FileEventFiltereventManagerURIs, filterName, isLockFile, lockFileEvent, lockSuffix, namePattern, pollTime, searchPath, skipDirectories, skipFiles, skipLocked, startPointeventType, handlerList, id, lock, logger, sourceType, thread, threadLockCONF_FILENAME_FILTER, CONF_IS_LOCK_FILE, CONF_LOCK_FILE_EVENT, CONF_LOCK_SUFFIX, CONF_SEARCH_DIRECTORY, CONF_SKIP_DIRECTORIES, CONF_SKIP_FILES, CONF_SKIP_LOCKEDCONF_POLL_TIME, CONF_START_TIME| Constructor and Description |
|---|
FileEventActivitySource(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
checkForAndHandleEvent, createFileEvent, createFileEvent, createLockFileEvent, createLockFileEvent, getPollTime, getStartTime, init, nextHandler, setConfiguration, terminate, verifyConfigurationValuesaddAll, addedHandlerLocked, addedHandlerLocked, addHandler, createPattern, forwardEvent, getEventHandler, getHierarchicalSourceName, getID, getType, maskedInterrupt, maskInterrupt, removeHandler, removingHandlerLocked, replaceValueParams, run, unmaskInterruptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandlerpublic FileEventActivitySource(Configuration conf, EventManager eventManager, Registry registry) throws ConfigurationException
EventManager called by
a service registry.conf - The configuration as provided from the registry.eventManager - The event manager this event source is a plugin of.registry - The registry of this plugin.ConfigurationException - If the configuration is not valid for a
PollingFileSource,
a ConfigurationException will be thrown.public void setConfiguration(Configuration conf, boolean completed) throws ConfigurationException
setConfiguration in class FileEventSourceconf - The configuration from which to get the configuration values.completed - Whether the configuration is complete after this setting
and therefore the values should be
verified.ConfigurationException - If there are problems with the
configuration, for instance the configuration does not provide
required values, a ConfigurationException may be
thrown.