Input WSO2Event Event Adapter
The input WSO2Event event adapter handles WSO2 events. It receives WSO2 events over Thrift using TCP, SSL/ TCP, HTTP, HTTPS. You can also send events via HTTP and HTTPS in a predefined JSON format, using the REST API data receiver.
Configuring input WSO2Event event adapter
By default, WSO2 products come with a configured WSO2Event event adapter by the name DefaultWSO2EventInputAdaptor
to receive fired events.
Have only one input WSO2Event event adapter in the product to receive incoming events. However, to send WSO2 events out, you can use several output WSO2Event event adapters.
By default, the input WSO2Event event adapter starts up with the product, and its default ports are as follows:
tcp port: 7611
ssl port: 7711
http port: 9763
https port: 9443
You can configure the input WSO2Event event adapter either using the management console or using a configuration file as explained below.
Configure using the management console
Follow the instructions below to configure input WSO2Event event adapter using the management console. This deploys the event adapter in the <PRODUCT_HOME>
/
repository/
deployment/
server/
inputeventadaptors/
directory.
- Log in to product's management console, and click Configure.
- Click Input Event Adaptors in the Event Processor Configs menu, and then click Add Input Event Adaptor.
Enter
LocalWSO2EventReceiver
for Event Adaptor Name, and selectwso2event
for Event Adaptor Type as shown below.
Click Add Event Adaptor.
Configure using a configuration file
Follow the instructions below to configure input WSO2Event event adapter using a configuration file.
Create an XML file with the following input WSO2Event event adapter configurations. Input event adapter implementation must start with
<inputEventAdaptor>
as the root element.<inputEventAdaptor name="LocalWSO2EventReceiver" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"></inputEventAdaptor>
Add the XML file to the
<PRODUCT_HOME>/repository/deployment/server/inputeventadaptors/ directory
. Since hot deployment is supported in the product, you can simply add/remove input event adapter configuration files to deploy/undeploy input event adapters to/from the server.
Configuring input WSO2Event event adapter message properties
WSO2Event
type can be configured as follows.- Log into the CEP Management Console. For detailed instructions, see Running the Product.
- In the Main tab, click Event Streams to open the Available Event Streams page.
- Click the Inflows link of the event stream to which the relevant input event adapter is connected. As a result, Event In-Flows (<Input_Event_Adapter_Name>) opens.
Click on the relevant event builder name to open the Event Builder Details page.
The message properties of aWSO2Event
input event adapter are described below. Change the property values as required.Property Description Input Event Adaptor Name The name of the input event adapter. Stream Name The name of the incoming WSO2 event stream. Stream Version The version of the incoming WSO2 event stream. Input Mapping Type The incoming event type to be mapped. The Input WSO2Event event adapter supports only WSO2Event mapping type.