|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Processors filter, correlate, aggregate, and perform other event processing functions. These functions are specified in some high-level language other than Java, as determined by the returned URI.
Method Summary | |
Statement |
createStatement(String query)
Compile query using the supplied query string parameter. |
Statement |
createStatement(String query,
String queryId)
Compile query using the supplied query string parameter and query id. |
URI |
getEPL()
Returns unique URI associated with a particular type of Processor. |
EventTypeRepository |
getEventTypeRepository()
Returns repository for types defined within the application. |
StatementManager |
getStatementManager()
Returns statement manager for accessing compiled statements defined for this processor. |
List |
loadStatements(URL location)
Load queries from an XML document located at the specified URL. |
Methods inherited from interface com.bea.wlevs.ede.api.EventSink |
onEvent |
Method Detail |
public URI getEPL()
public List loadStatements(URL location) throws MultiStatementException
<processor xmlns="http://www.bea.com/ns/wlevs/epl" type="wlevs:epl"> <rules> <rule id="rule1"><![CDATA[ select stockSymbol, perc(price) as percentage from StockTick(stockSymbol='BEAS').win:length(2) having perc(price) > 10.0 or perc(price) < -10.0 ]]></rule> <rule id="rule2"><![CDATA[ select stockSymbol, perc(price) as percentage from StockTick(stockSymbol='IBM').win:length(2) having perc(price) > 10.0 or perc(price) < -10.0 ]]></rule> </rules> </processor>
location
- URL location of queriespublic Statement createStatement(String query) throws StatementException
query
- query string to compilepublic Statement createStatement(String query, String queryId) throws StatementException
query
- query string to compilequeryId
- ID for query unique over this procesorpublic EventTypeRepository getEventTypeRepository()
public StatementManager getStatementManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |