Configuring an Event Store for Oracle CEP Server

13-8 Oracle Complex Event Processing Developers Guide

13.2.3 Configuring a Component to Playback Events

You can configure any processor, adapter, channel, or event bean in your application to playback events, although the component must be a node downstream of the recording component so that the playback component will actually receive the events and play them back. As with all other component configuration, you specify that a component plays back events by updating its configuration file. For general information about these configuration files, see Section 1.1.5, Component Configuration Files. This section describes the main steps to configure a component to play back events. For simplicity, it is assumed in the procedure that you are configuring a channel to playback events from a node upstream in the EPN that has recorded events, and that you have already created the channels configuration file. See for the complete XSD Schema that describes the event playback configuration file elements. Using your favorite XML editor, open the component configuration XML file and add a playback-parameters child element to the component you want to configure to playback events. For example, to configure a channel called eventStream: ?xml version=1.0 encoding=UTF-8? n1:config xmlns:n1=http:www.bea.comnswlevsconfigapplication xmlns:xsi=http:www.w3.org2001XMLSchema-instance channel nameeventStreamname playback-parameters ... playback-parameters channel ... n1:config Add child elements to playback-parameters to specify the name of the event store provider, the events that are played back, and so on. For example: channel nameeventStreamname playback-parameters dataset-namerecplay_sampledataset-name event-type-list batch-size Specifies the number of events that Oracle CEP picks up in a single batch from the event buffer to write the event store. Default value is 1000. batch-time-out Specifies the number of seconds that Oracle CEP waits for the event buffer window to fill up with the batch-size number of events before writing to the event store. Default value is 60 max-size If specified, Oracle CEP uses a stream when writing to the event store, and this element specifies the size of the stream, with non-zero values indicating asynchronous writes. Default value is 1024. max-threads If specified, Oracle CEP uses a stream when writing to the event store, and this element specifies the maximum number of threads that will be used to process events for this stream. Setting this value has no effect when max-size is 0. The default value is 1. Table 13–2 Cont. Child Elements of record-parameters Child Element Description