Configure the Output as follows: Click OK. Click Save. Click on the CQL Rules tab. Click on the Query radio button. In the Oracle CEP Visualizer, click the ViewStream button in the top pane. Click Initialize Client. Enter stockmoving in the Inititalize cl
45. Configure the Output as follows:
■ Select Query. ■ Enter MovingAverage as the Query Name. 46. Click Inject Rule. The Inject Rule Confirmation dialog appears as Figure 3–46 shows. Figure 3–73 Inject Rule Confirmation Dialog47. Click OK.
The Query Wizard adds the rule to the cqlProc processor.48. Click Save.
49. Click on the CQL Rules tab.
The CQL Rules tab appears as Figure 3–47 shows.50. Click on the Query radio button.
Confirm that your MovingAverage query is present. Oracle CEP Samples 3-85 Figure 3–74 CQL Rules Tab With View MovingAverage To test the moving average query: 1. To simulate the data feed for the moving average query, open a new command window and set your environment as described in Section 3.5, Setting Your Development Environment. 2. Change to the ORACLE_CEP_HOME\ocep_11.1\utils\load-generator directory, where ORACLE_CEP_HOME refers to the main Oracle CEP installation directory, such as d:\oracle_cep. 3. Run the load generator using the stockData.prop properties file: a. On Windows: prompt runloadgen.cmd stockData.prop b. On UNIX: prompt runloadgen.sh stockData.prop4. In the Oracle CEP Visualizer, click the ViewStream button in the top pane.
The Stream Visualizer screen appears as Figure 3–27 shows. 3-86 Oracle Complex Event Processing Getting Started Figure 3–75 Stream Visualizer: Showing Moving Average Query Output5. Click Initialize Client.
6. Enter stockmoving in the Inititalize client field.
7. Click Subscribe.
As the moving average query outputs events, the Oracle CEP updates the Received Messages area showing the events generated.3.8 Oracle Spatial Example
This example shows how to use Oracle Spatial with Oracle CQL queries to process a stream of Global Positioning System GPS events to track the GPS location of buses and generate alerts when a bus arrives at its pre-determined bus stop positions. Figure 3–76 shows Oracle Spatial example Event Processing Network EPN. The EPN contains the components that make up the application and how they fit together.Parts
» Oracle Fusion Middleware Online Documentation Library
» Introduction to Oracle Complex Event Processing Conceptual Overview of Oracle CEP
» Event Processing Networks Use Cases
» Summary of Oracle CEP Features
» Supported Platforms Oracle CEP IDE for Eclipse Oracle CEP Visualizer
» Oracle CEP-Specific Middleware Home Existing Oracle Fusion Middleware Home
» Next Steps Installing Oracle CEP in Graphical Mode
» To install into a new Oracle Middleware Home directory:
» Installing Oracle CEP in Console Mode
» Creating a silent.xml File for Silent-Mode Installation
» Guidelines for Component Selection Returning Exit Codes to the Command Window
» Upgrading a WebLogic Event Server 2.0 Domain to Oracle CEP 10.3
» Upgrading an Oracle CEP 10.3 Domain to Oracle CEP 11g Release 1 11.1.1.4.0
» Upgrading a WebLogic Event Server 2.0 Application to Run on Oracle CEP 10.3
» Upgrading an Oracle CEP 10.3 Application to Run on Oracle CEP 11g Release 1 11.1.1.4.0
» Ready-to-Run Samples Sample Source
» How to Set Your Development Environment on Windows
» Description of the Ant Targets to Build Hello World Implementation of the HelloWorld Example
» The HelloWorld EPN Assembly File
» The HelloWorld Component Configuration File
» Building and Deploying the CQL Example Description of the Ant Targets to Build the CQL Example
» Running the Oracle Spatial Example
» Implementation of the Oracle Spatial Example
» Oracle Spatial Example EPN Assembly File
» Oracle Spatial Example Component Configuration File
» Running the Foreign Exchange Example
» Implementation of the FX Example The FX EPN Assembly File
» FX Processor Component Configuration File: spreader.xml
» Implementation of the Signal Generation Example
» The Signal Generation EPN Assembly File
» The Signal Generation Component Configuration Files
» Running the Event RecordPlayback Example
Show more