Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

WSO2Event input event adapter is used to receive events in the WSO2Event format via Thrift or binary protocols. By default it uses the following ports to retrieve events.

  • For Thrift:
     - TCP port:7611
     - SSL port:7711
  • For Binary: 
    - TCP port:9611
    - SSL port:9711

Use the tcp://<hostname>:<port> and ssl://<hostname>:<port> URLs to send events to the server as follows.

  • Use the following format for load-balancing: 
    {tcp://<hostname>:<port>,tcp://<hostname>:<port>, ...}
  • Use the following format for failover:  
    {tcp://<hostname>:<port>|tcp://<hostname>:<port>| ...}
  • Use the following format to send messages to more than one cluster of endpoints (cluster is defined using "{}") : 
    {tcp://<hostname>:<port>|tcp://<hostname>:<port>| ...},{tcp://<hostname>:<port>}
    In the above format, the event is delivered to one endpoint on the first cluster of endpoints in a failover manner. Also, the same message is delivered to the endpoint defined in the second cluster.

Creating a WSO2Event input event adapter

For instructions on creating WSO2Event input event adapter, see Receiving Events.  

Configuring adapter properties

Specify the Adapter Properties, when creating a WSO2Event input event adapter using the management console as shown below.

WSO2Event input event adapter properties

After entering the above adapter properties, select the Event Stream to which you want to map the incoming events, and the Message Format which you want to apply on the receiving events. Also, click Advanced to define custom input mappings based on the Message Format you selected. For more information on custom input mapping types, see Input Mapping Types.

You can also define the respective adapter properties of the event receiver based on the transport type within the <from> element of the event receiver configuration in the<CEP_HOME>/repository/deployment/server/eventreceivers/ directory as follows.

<eventReceiver name="WSO2EventInputEventAdapter" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
    <from eventAdapterType="wso2event">
        <property name="events.duplicated.in.cluster">false</property>
    </from>
    ...................
</eventReceiver>

The above adapter properties are described below.

Adapter PropertyDescriptionConfiguration file propertyExample
Is events duplicated in clusterIn a cluster whether the same event can reach two receiver nodes
events.duplicated.in.cluster
true/false
  • No labels