Class ReadOnlyRSEventSource
java.lang.Object
de.aristaflow.adept2.core.eventmanager.common.AbstractEventSource<ResultSetEvent>
de.aristaflow.adept2.core.eventmanager.dbevents.DBEventSource
de.aristaflow.adept2.core.eventmanager.dbevents.ReadOnlyRSEventSource
- All Implemented Interfaces:
EventSource<ResultSetEvent>,PollingSource<ResultSetEvent>,ResultSetSource,Runnable
A source for events based on SQL statements creating result sets that are
read only and do not support updating. This is required for some
databases/JDBC drivers that do not support updating via a result set.
-
Field Summary
Fields inherited from class de.aristaflow.adept2.core.eventmanager.dbevents.DBEventSource
dataSource, eventManager, jdbcConnectionURL, jdbcDriver, jdbcPassword, jdbcUserName, notifyEmptyOnly, pollTime, selectStatement, startTimeFields inherited from class de.aristaflow.adept2.core.eventmanager.common.AbstractEventSource
eventType, handlerList, id, lock, logger, sourceType, thread, threadLockFields inherited from interface de.aristaflow.adept2.model.events.sources.PollingSource
CONF_POLL_TIME, CONF_START_TIMEFields inherited from interface de.aristaflow.adept2.model.events.sources.ResultSetSource
CONF_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 Summary
ConstructorsConstructorDescriptionReadOnlyRSEventSource(Configuration conf, DefaultEventManager eventManager, Registry registry) Default constructor for a plugin of theDefaultEventManagercalled by a service registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks for an event and handles it (usually by usingAbstractEventSource.forwardEvent(Event, boolean, boolean)).Methods inherited from class de.aristaflow.adept2.core.eventmanager.dbevents.DBEventSource
createResultSetEvent, getPollTime, getStartTime, nextHandler, setConfiguration, setConfiguration, verifyConfigurationValuesMethods inherited from class de.aristaflow.adept2.core.eventmanager.common.AbstractEventSource
addAll, addedHandlerLocked, addedHandlerLocked, addHandler, createPattern, forwardEvent, getEventHandler, getHierarchicalSourceName, getID, getType, maskedInterrupt, maskInterrupt, removeHandler, removingHandlerLocked, replaceValueParams, run, unmaskInterruptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.aristaflow.adept2.model.events.sources.EventSource
addAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandlerMethods inherited from interface de.aristaflow.adept2.model.events.sources.PollingSource
init, terminate
-
Constructor Details
-
ReadOnlyRSEventSource
public ReadOnlyRSEventSource(Configuration conf, DefaultEventManager eventManager, Registry registry) throws ConfigurationException Default constructor for a plugin of theDefaultEventManagercalled by a service registry.This just forwards to the constructor of the superclass.
- Parameters:
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.- Throws:
ConfigurationException- If the configuration is not valid for aResultSetSource, aConfigurationExceptionwill be thrown.
-
-
Method Details
-
checkForAndHandleEvent
public void checkForAndHandleEvent()Description copied from class:AbstractEventSourceChecks for an event and handles it (usually by usingAbstractEventSource.forwardEvent(Event, boolean, boolean)).- Overrides:
checkForAndHandleEventin classDBEventSource
-