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
public class ReadOnlyRSEventSource extends DBEventSource
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, startTime
-
Fields inherited from class de.aristaflow.adept2.core.eventmanager.common.AbstractEventSource
eventType, handlerList, id, lock, logger, sourceType, thread, threadLock
-
Fields inherited from interface de.aristaflow.adept2.model.events.sources.PollingSource
CONF_POLL_TIME, CONF_START_TIME
-
Fields 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
Constructors Constructor Description ReadOnlyRSEventSource(org.apache.commons.configuration2.Configuration conf, DefaultEventManager eventManager, Registry registry)
Default constructor for a plugin of theDefaultEventManager
called by a service registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForAndHandleEvent()
Checks 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, init, nextHandler, setConfiguration, setConfiguration, terminate, verifyConfigurationValues
-
Methods 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, unmaskInterrupt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.model.events.sources.EventSource
addAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandler
-
-
-
-
Constructor Detail
-
ReadOnlyRSEventSource
public ReadOnlyRSEventSource(org.apache.commons.configuration2.Configuration conf, DefaultEventManager eventManager, Registry registry) throws ConfigurationException
Default constructor for a plugin of theDefaultEventManager
called 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
, aConfigurationException
will be thrown.
-
-
Method Detail
-
checkForAndHandleEvent
public void checkForAndHandleEvent()
Description copied from class:AbstractEventSource
Checks for an event and handles it (usually by usingAbstractEventSource.forwardEvent(Event, boolean, boolean)
).- Overrides:
checkForAndHandleEvent
in classDBEventSource
-
-