Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: Socket Input Adapter

$
0
0

Hi Bulut,

 

Some of the adapters supplied with ESP are built with the toolkit.  These adapters consist of modules as illustrated here:

 

Event Stream Processor Adapter Toolkit

 

 

If you look at the CSV Socket Input Adapter's configuration file (%ESP_HOME%\adapters\framework\instances\socket_csv_input\adapter_config.xml), you will see that it consists of four modules (an input transport, two formatters and an ESP connector):

SocketInputTransporter -> StreamToStringFormatter -> CsvStringToEspFormatter -> EspPublisher

 

After the socket input transporter reads a stream of TCP data, the StreamToStringFormatter needs to somehow identify where one line begins and the next ends so that it can begin to parse the data into columns that can then be published to ESP.

 

You can see what another user did here with their Socket Server:

   Cann't read data from socket csv input adapter

 

Thanks,

Neal


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>