OnixS C++ CME MDP Streamlined Market Data Handler  1.2.0
API Documentation
Handler Class Reference

#include <OnixS/CME/Streamlined/Handler.h>

Public Member Functions

 Handler (const HandlerSettings &)
 
 ~Handler ()
 
const HandlerSettingssettings () const
 
Loggerlogger ()
 
void selectInstruments (const InstrumentSelection &)
 
void registerListener (HandlerListener &listener)
 
void registerFeedListener (FeedListener &listener)
 
void registerMarketDataListener (MarketDataListener &listener)
 
void bindFeedEngine (FeedEngine &feedEngine)
 
void bindTcpRecovery (TcpRecoveryService &tcpRecovery)
 
void bindLogger (Logger &logger)
 
void clearInstrumentCache ()
 
void start (const SessionSettings &)
 
void stop ()
 
void replay (const ReplaySettings &)
 

Detailed Description

Definition at line 50 of file Handler.h.

Constructor & Destructor Documentation

Handler ( const HandlerSettings )

Initializes instance according to given settings.

~Handler ( )

Finalizes instance usage.

Member Function Documentation

void bindFeedEngine ( FeedEngine feedEngine)

Binds Feed Engine to the Handler.

Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void bindLogger ( Logger logger)

Binds Logging Service to the Handler.

Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void bindTcpRecovery ( TcpRecoveryService tcpRecovery)

Binds TCP Recovery Service to the Handler.

Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void clearInstrumentCache ( )

Erases instrument definitions cache if used.

Handler will produce a new cache at next start.

Logger& logger ( )

Logger currently used by the Handler.

void registerFeedListener ( FeedListener listener)

Registers feed event listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.

Listeners are to be associated before starting market data processing - Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void registerListener ( HandlerListener listener)

Registers Handler events listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.

Listeners are to be associated before starting market data processing - Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void registerMarketDataListener ( MarketDataListener listener)

Registers market data processing listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.

Listeners are to be associated before starting market data processing - Handler must be in stopped state.

Exceptions
std::exceptionin case when handler is not in configurable state.
void replay ( const ReplaySettings )

Processes market data stored in log files according to specified settings.

void selectInstruments ( const InstrumentSelection )

Filters instruments whose market data is to be processed and events are to be fired by the Handler.

Warning
Instrument selection can be updated only when market data processing is not performed by the Handler or upon successful instrument recovery completion.
const HandlerSettings& settings ( ) const

Configuration settings of given instance.

void start ( const SessionSettings )

Starts market data processing according to given parameters.

void stop ( )

Stops the Handler.


The documentation for this class was generated from the following file: