High Availability Input Adapter EPN Assembly File Configuration

Configuring High Availability 21-31 ha:ha-broadcast-adapter Table 21–9 describes the additional child elements of ha-broadcast-adapter you can configure for an Oracle CEP high availability broadcast output adapter.

21.2.4 How to Configure the Correlating Output Adapter

The Oracle CEP high availability correlating output adapter is implemented by class CorrelatedQueueTrimmingAdapter. This section describes how to configure the Oracle CEP high availability correlating output output adapter, including: ■ Section 21.2.4.1, Correlating Output Adapter EPN Assembly File Configuration ■ Section 21.2.4.2, Correlating Output Adapter Component Configuration File Configuration For more information, see Section 20.1.3.4, Correlating Output Adapter .

21.2.4.1 Correlating Output Adapter EPN Assembly File Configuration

The root element for declaring an Oracle CEP high availability correlating output adapter is wlevs:adapter with provider element set to ha-correlating as Example 21–51 shows. Example 21–51 Correlating Output Adapter EPN Assembly File wlevs:adapter id=myCorrelatingAdapter provider=ha-correlating wlevs:listener bean class=com.bea.wlevs.example.cluster.ClusterAdapterBean wlevs:listener wlevs:instance-property name=correlatedSource ref=clusterCorrOutstream wlevs:instance-property name=failOverDelay value=2000 wlevs:adapter Table 21–9 Child Elements of ha-broadcast-adapter for the Broadcast Output Adapter Child Element Description trimming-interval Specify the interval at which trimming messages are broadcast as an integer number of units. You can use this property for performance tuning see Section 27.2.4, Broadcast Output Adapter Configuration . Valid values for attribute units: ■ events: broadcast trimming messages after the specified number of milliseconds. ■ millis: broadcast trimming messages after the specified number of events are processed. Default: units is events. warm-up-window Specify the length of time it takes the application to rebuild state after a previously failed secondary restarts or a new secondary is added as an integer number of units. Valid values for attribute units: ■ seconds: wait the specified number of seconds. ■ minutes: wait the specified number of minutes. Default: units is events. For more information, see Section 20.3.2.5, Choose an Adequate warm-up-window Time . 21-32 Oracle Complex Event Processing Developers Guide Table 21–10 describes the additional child elements of wlevs:adapter you can configure for an Oracle CEP high availability correlating output adapter. Table 21–11 lists the instance properties that the Oracle CEP high availability correlating output adapter supports.

21.2.4.2 Correlating Output Adapter Component Configuration File Configuration

The root element for configuring an Oracle CEP high availability correlating output adapter is ha-correlating-adapter. The name child element for a particular adapter must match the id attribute of the corresponding wlevs:adapter element in the EPN assembly file that declares this adapter as Example 21–52 shows. Example 21–52 Correlating Output Adapter Component Configuration File ha:ha-correlating-adapter namemyCorrelatingAdaptername window-length15000window-length warm-up-window-length units=minutes6warm-up-window-length ha:ha-correlating-adapter Table 21–12 describes the additional child elements of ha-broadcast-adapter you can configure for an Oracle CEP high availability correlating output adapter. Table 21–10 Child Elements of wlevs:adapter for the Correlating Output Adapter Child Element Description wlevs:listener Specify the regular output adapter downstream from this Oracle CEP high availability buffering output adapter. wlevs:instance-property Specify one or more instance-property element name and value attributes as Table 21–11 describes. Table 21–11 Correlating Output Adapter Instance Properties Name Value correlatedSource Specify the event source that will be used to correlate against. Events seen from this source will be purged from the trimming queue. Events still in the queue at failover will be replayed. failOverDelay Specify the delay timeout in milliseconds that is used to decide how soon after failover correlation should restart. Default: 0 ms. Table 21–12 Child Elements of ha-correlating-adapter for the Correlating Output Adapter Child Element Description fail-over-delay Specify the delay timeout in milliseconds that is used to decide how soon after failover correlation should restart. Default: 0 ms. warm-up-window Specify the length of time it takes the application to rebuild state after a previously failed secondary restarts or a new secondary is added as an integer number of units. Valid values for attribute units: ■ seconds: wait the specified number of seconds. ■ minutes: wait the specified number of minutes. Default: units is events. For more information, see Section 20.3.2.5, Choose an Adequate warm-up-window Time .