Getting Stream Information from the Project

Gather the necessary information from the project.

The first step in configuring the output adapter is determining which data elements from which streams on the Event Stream Processor are to be published. After you have chosen (or defined) a project containing the items for publication over RMDS via the Reuters adapter, collect information from the streams to obtain the data to send to RMDS.

Each stream definition specifies a data stream that is instantiated when Event Stream Processor is started. The stream definition:
  • Specifies a unique ID for the stream
  • Identifies the columns used as the unique key value for each row in the data stream

Once you have decided which streams will provide the information to be sent to RMDS by the Reuters adapter, get information from the stream definition in the project file. There is no standard for project file names. Two Event Stream Processor installations may have completely different stream definitions, but the definition of any stream includes the same basic set of components.

  1. Open the project to which the adapter provides data. The Reuters Marketfeed adapter distribution includes an example project, $ESP_REUTERS_HOME/examples/example.ccl.
  2. From the definition of each stream defined in the project:
    1. Obtain the name of the stream from the id attribute in the opening tag of that stream.
    2. Verify that the key attribute is set to true for the column containing the RIC and note the column. In this example, both “stream1” and “orderbookStream” have the RIC in the column named “symbol,” which is identified as a key field.
    3. Decide what data, if any, you want the adapter to send to RMDS.
  3. Carefully note which streams contain data to send to RMDS, and where in the stream definition it is located.
    In the output adapter map file, reference each of the columns you want to publish.