public class DBActivityEventSource extends DBEventSource
dataSource, eventManager, jdbcConnectionURL, jdbcDriver, jdbcPassword, jdbcUserName, notifyEmptyOnly, pollTime, selectStatement, startTimeeventType, handlerList, id, lock, logger, sourceType, thread, threadLockCONF_POLL_TIME, CONF_START_TIMECONF_DATA_SOURCE_NAME, CONF_JDBC_CONNECTION_URL, CONF_JDBC_DRIVER, CONF_JDBC_PASSWORD, CONF_JDBC_USER_NAME, CONF_NOTIFY_EMPTY_ONLY, CONF_SELECT_STATEMENT| Constructor and Description |
|---|
DBActivityEventSource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of the
DefaultEventManager called
by a service registry. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
checkForAndHandleEvent, createResultSetEvent, 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 DBActivityEventSource(Configuration conf, DefaultEventManager eventManager, Registry registry) throws ConfigurationException
DefaultEventManager called
by a service registry.conf - The configuration as provided from the registry. This is not
expected to contain the simple session context of the activity of
this event source.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
ResultSetEvent, a
ConfigurationException will be thrown.protected void setConfiguration(Configuration conf, boolean completed) throws ConfigurationException
setConfiguration in class DBEventSourceconf - 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.