The event sender sample program is an event sender application that sends event data for testing in CSV format to an HTTP adapter.
Execution format
The execution format of the program is as follows:
/opt/FJSVcep/sample/sample1/bin/sendevent.sh eventType dataFilePath [ sendDestinationURL ]
Specify which event type is to be used to send the data.
Specify the development asset ID of the target event type.
Specify the path of the CSV format file that contains the event data.
Specify the endpoint address of the HTTP adapter.
If this is omitted, the default is "http://localhost/CepEngineFrontServerService/HttpReceiver".
Information
Endpoint address of the CEP engine
The send destination URL of the CEP engine is as follows:
http://CEPengineAddress/CEPengineNameFrontServerService/HttpReceiver
The send destination URL of the CEP engine (CepEngine) of the CEP Server ("cephost.example.com") is as follows:
http://cephost.example.com/CepEngineFrontServerService/HttpReceiver
Source code
Below is the source code of the event sender sample program.
/opt/FJSVcep/sample/sample1/src/sample/HttpClient.java
1 | package sample; |