#include <OnixS/CME/MDH/Handler.h>
Public Member Functions | |
Handler (const std::string &="") | |
Handler (const MemoryPoolSettings &, const std::string &="") | |
Handler (const HandlerSettings &, const std::string &="") | |
~Handler () | |
HandlerSettings & | settings () |
const HandlerSettings & | settings () const |
Logger & | logger () |
void | selectInstruments (const InstrumentSelection &) |
void | clearInstrumentCache () |
void | registerListener (HandlerListener &listener) |
void | registerFeedListener (ChannelFeedListener &listener) |
void | registerMarketDataListener (MarketDataListener &listener) |
void | registerSecurityListener (SecurityListener &listener) |
void | bindFeedEngine (NetFeedEngine &feedEngine) |
void | bindTcpRecovery (TcpRecoveryService &tcpRecovery) |
void | bindLogger (Logger &logger) |
void | start () |
void | start (const SessionSettings &) |
void | stop () |
std::string | licenseExpirationDate () const |
Friends | |
class | PcapReplayHelper |
Handler | ( | const std::string & | = "" | ) |
Initializes the instance with the default settings.
|
explicit |
Initializes instance with the memory pool configured according to the given settings.
|
explicit |
Initializes the instance according to the given settings.
~Handler | ( | ) |
Finalizes the instance.
void bindFeedEngine | ( | NetFeedEngine & | feedEngine | ) |
Binds Feed Engine to the Handler.
Handler must be in stopped state.
std::exception | in case when handler is not in configurable state. |
void bindLogger | ( | Logger & | logger | ) |
Binds Logging Service to the Handler.
Handler must be in stopped state.
std::exception | in 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.
std::exception | in 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.
std::string licenseExpirationDate | ( | ) | const |
Returns the license expiration date.
Logger& logger | ( | ) |
void registerFeedListener | ( | ChannelFeedListener & | 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 registerSecurityListener | ( | SecurityListener & | listener | ) |
Registers security 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 selectInstruments | ( | const InstrumentSelection & | ) |
HandlerSettings& settings | ( | ) |
The configuration parameters of the given instance.
const HandlerSettings& settings | ( | ) | const |
Immutable configuration of the given instance.
void start | ( | ) |
Starts market data processing.
void start | ( | const SessionSettings & | ) |
Updates the session configuration according to the given settings and starts market data processing.
void stop | ( | ) |
Stops market data processing.