|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.db.PollExecStrategyDBQuery
public class PollExecStrategyDBQuery
Viewable providing historical data from a database.
Constructor Summary | |
---|---|
PollExecStrategyDBQuery(EventAdapterService eventAdapterService,
EventType eventType,
ConnectionCache connectionCache,
String preparedStatementText,
Map<String,DBOutputTypeDesc> outputTypes)
Ctor. |
Method Summary | |
---|---|
void |
destroy()
Indicate we are no going to use this object again. |
void |
done()
Indicate we are done polling and can release resources. |
List<EventBean> |
poll(Object[] lookupValues)
Poll events using the keys provided. |
void |
start()
Start the poll, called before any poll operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PollExecStrategyDBQuery(EventAdapterService eventAdapterService, EventType eventType, ConnectionCache connectionCache, String preparedStatementText, Map<String,DBOutputTypeDesc> outputTypes)
eventAdapterService
- for generating event beanspreparedStatementText
- is the SQL to use for pollingoutputTypes
- describe columns selected by the SQLeventType
- is the event type that this poll generatesconnectionCache
- caches Connection and PreparedStatementMethod Detail |
---|
public void start()
PollExecStrategy
start
in interface PollExecStrategy
public void done()
PollExecStrategy
done
in interface PollExecStrategy
public void destroy()
PollExecStrategy
destroy
in interface PollExecStrategy
public List<EventBean> poll(Object[] lookupValues)
PollExecStrategy
poll
in interface PollExecStrategy
lookupValues
- is keys for exeuting a query or such
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |