#include <OnixS/CME/Streamlined/Handler.h>
Public Member Functions | |
Handler (const HandlerSettings &) | |
~Handler () | |
const HandlerSettings & | settings () const |
Logger & | logger () |
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 &) |
Handler | ( | const HandlerSettings & | ) |
Initializes instance according to given settings.
~Handler | ( | ) |
Finalizes instance usage.
void bindFeedEngine | ( | FeedEngine & | feedEngine | ) |
void bindLogger | ( | Logger & | logger | ) |
void bindTcpRecovery | ( | TcpRecoveryService & | tcpRecovery | ) |
void clearInstrumentCache | ( | ) |
Erases instrument definitions cache if used.
Handler will produce a new cache at next start.
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.
std::exception | in 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.
std::exception | in 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.
std::exception | in 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 & | ) |
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.