|Oracle® Fusion Middleware EPL Language Reference for Oracle Complex Event Processing
11g Release 1 (18.104.22.168.3)
Part Number E14304-08
|PDF · Mobi · ePub|
This chapter describes Java APIs for working with Event Processing Language (EPL). Note that EPL is deprecated; new development should use Oracle Continuous Query Language (Oracle CEP).
This section contains information on the following subjects:
EPL statements are loaded and compiled individually through the following method:
Statement createStatement(String query) throws StatementException;
If the query fails to compile, a
StatementException will be thrown. Alternatively, multiple statements may be loaded from a URL using the following method:
List<Statement> loadStatements (URL location) throws MultiStatementException;
If the queries fail to compile, a
MultiStatementException will be thrown. The structure of the rules file is explained in "Configuring EPL Processors" in the Oracle Fusion Middleware Developer's Guide for Oracle Complex Event Processing for Eclipse. Individual queries compiled through the
createStatement are not persisted and have no effect on the rule files located at the URL location.
com.bea.wlevs.ede.api.Statement interface allows event sinks to be attached to an EPL statement using the following method:
void addEventSink (EventSink listener);
The engine calls the following method on the
ccom.bea.wlevs.ede.api.EventSink interface when events are added to the output window as a result of executing the statement:
void onEvent (List newEvents);
For more information, see the complete Oracle Fusion Middleware Java API Reference for Oracle Complex Event Processing.