210_MBO_Streaming
Summary
=======
The 210_MBO_Streaming application is provided as an example of
OMM Consumer application written to the EMA library.
This application demonstrates basic usage of the EMA library for accessing
and parsing of OMM MarketByOrder data from Data Feed Direct,
directly from an OMM Provider application, or from the Advanced
Distribution Server.
The 210_MBO_Streaming showcases native or RWF decoding of received
Map and FieldList. This application iterates through the received FieldList and
calls respective (based on the data type) get***() methods to extract data in
native format.
Detailed Description
====================
The 210_MBO_Streaming implements the following high level steps:
+ Implements OmmConsumerClient class in AppClient
- overrides desired methods
- provides own methods as needed, e.g. decode( const FieldList& )
- the decode( const FieldList& ) iterates through the received FieldList,
extracts each FieldEntry reference from the current position on the
FieldList, and extracts field id, name and value of the current FieldEntry
- the decode( const Map& ) iterates through the received Map, extracts Summary
if it is present, extracts MapEntry from which it extracts key, and load values
- both methods use native / RWF data format while extracting data
+ Instantiates AppClient object that receives and processes item messages
+ Instantiates and modifies OmmConsumerConfig object
- sets user name to “user”
- sets host name on the preconfigured connection to “localhost”
- sets port on the preconfigured connection to “14002”
+ Instantiates an OmmConsumer object which initializes the connection
and logs into the specified server.
+ Opens a streaming item interest
- MarketByOrder AAO.V item from DIRECT_FEED service
+ Processes data received from API for 60 seconds
- all received messages are processed on API thread of control
+ Exits
Note: if needed, these and other details may be modified to fit local
environment.
Note: please refer to the EMA library ReadMe.txt file for details on
standard configuration.