How to Deploy an Oracle CEP Application Using Oracle CEP Visualizer

25-4 Oracle Complex Event Processing Developers Guide Horatio,80,Argentina A load generator data feed file follows a simple format: ■ Each item of a particular data feed is on its own line. ■ Separate the fields of a data feed item with commas. ■ Do not include commas as part of a string field. ■ Do not include extraneous spaces before or after the commas, unless the space is literally part of the field value. ■ Include only string and numerical data in a data feed file such as integer, long, double, and float. ■ By default, the maximum length of a string field is 256 characters. To specify a longer string, set the length attribute of the char property in your event-type as Example 25–1 shows for the birthplace property. For more information, see Event Types for use With the csvgen Adapter on page 2-5.

25.5 Configuring the csvgen Adapter in Your Application

When using the load generator utility, you must use the csvgen adapter in your application because this Oracle CEP-provided adapter is specifically coded to read the data packets generated by the load generator. You register the csvgen adapter using the wlevs:adapter element in the EPN assembly file of your application, as with all adapters. Set the provide attribute to csvgen to specify that the provider is the csvgen adapter, rather than your own adapter. Additionally, you must specify the following child tags: ■ wlevs:instance-property element with name attribute port and value attribute configured_port, where configured_port corresponds to the value of the test.port property in the load generator property file. See Section 25.3, Creating a Load Generator Property File. ■ wlevs:instance-property element with name attribute eventTypeName and value attribute event_type_name, where event_type_name corresponds to the name of the event type that represents an item from the load-generated feed. ■ wlevs:instance-property element with name attribute eventPropertyNames and value attribute ordered_list_of_properties, where ordered_list_of_properties lists the names of the properties in the order that the load generator sends them, and consequently the csvgen adapter receives them. Before showing an example of how to configure the adapter, first assume that your application registers an event type called PersonType in the EPN assembly file using the wlevs:metada element shown below: wlevs:event-type-repository wlevs:event-type type-name=PersonType wlevs:properties Note: The load generator does not fully comply with the CSV specification http:www.creativyst.comDocArticlesCSVCSV01.ht m .