WSO2Event event adaptor handles WSO2 Common Events. It receives events over Thrift using TCP, SSL, HTTP, HTTPS and also JSON events via HTTP and HTTPS. By default, the CEP comes with an WSO2Event event adaptor, which is used to receive fired events
Note: You can use the WSO2Event event adaptor that comes with the CEP only to receive incoming events. But, CEP can send output events to any (including external) WSO2Event event adaptors.
By default, Input WSO2Event event adaptor starts with CEP, and its default ports are as follows:
tcp port : 7611
ssl port : 7711
http port : 9763
https port : 9443
The steps below explain how to configure using the management console or using an XML file as explained in step 5.
<PRODUCT_HOME>/repository/deployment/server/inputeventadaptors
directory, which is the Input event adaptor deployment directory. Since hot deployment is
enabled, you can simply add/remove files to deploy/undeploy from the server.<inputEventAdaptor>
root element.
<inputEventAdaptor name="localEventReceiver" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"></inputEventAdaptor>
Stream definition stores are used to store the stream definitions of the incoming event streams. WSO2Event event adaptor supports three types of stream definition stores as follows:
By default, CEP uses the registry-based stream definition store. To change the default stream
definition store, add the appropriate stream definition store implementation class to <PRODUCT_HOME>/repository/conf/data-bridge/data-bridge-config.xml
file as follows:
<dataBridgeConfiguration xmlns="http://wso2.org/carbon/databridge"> <StreamDefinitionStore> org.wso2.carbon.databridge.streamdefn.cassandra.datastore.CassandraStreamDefinitionStore </StreamDefinitionStore> ... </dataBridgeConfiguration>
Info: : In registry-based stream definition store, the stream
definitions are stored in
/_system/governance/StreamDefinitions
.
In Cassandra-based stream definition store, the stream definitions
are stored in META_KS
key space.
For more details on configuring different types of event adaptors, Please refer the official documentation Here.