...
Info | ||
---|---|---|
| ||
By default there will be an Agent server started with CEP, and its default ports are as follows;
|
Configuring through User Interface
- Sign In. Enter your user name and password to log on to the Complex Event Processor Management Console.
- Click on "Configure" section of the left panel
- Then click on "Add" menu item under "Broker" Menu
You will get a page with header "Create a New Broker" and here you can configure new broker configurations Enter the following details in the form to create an Agent broker
No Format Broker Name : agentBroker Broker Type : agent Receiver URL : tcp://localhost:7611 (Here we assume you started an Agent Server at 7611 to have this URL) Authenticator URL: ssl://localhost:7711 User Name : admin Password : admin
Note title Note For secure data transfer use ssl or https for both Receiver URL and Authenticator URL of the Agent Broker. In the normal case Authenticator URL can be of ssl or https and Receiver URL can be either of tcp or http.
Once you click on the "Add Broker" button, you will be directed to the Available Brokers page.
Available Brokers page allows you to view the broker configurations by clicking on the broker name and delete brokers by clicking on delete button.
Configuring through configuration file
Broker management configuration can be provided via broker-manager-config.xml. These configurations will be loaded at server start-up.
- Open broker-manager-config.xml which is at <CEP_HOME>/repository/conf
Enter the following Agent broker configurations inside the "brokerManagerConfiguration" element as below
Code Block language html/xml <brokerManagerConfiguration> .. <brokerConfiguraton name="agentBroker" type="agent"> <property name="receiverURL">tcp://localhost:7611</property> <property name="authenticatorURL">ssl://localhost:7711</property> <property name="username">admin</property> <property name="password">admin</property> </brokerConfiguraton> .. .. </brokerManagerConfiguration>
Configuring topics for Agent broker
Agent broker can be configured with Tuple input mapping, and Tuple output mapping of a query.
The topic used when using agent broker will look like : <stream name>/<version>
E.g. org.wso2.phone.retail.store/1.2.0