OnixS BME SENAF Handler C++ library  2.2.1
API documentation
Handler Class Reference

#include <OnixS/Senaf/MarketData/Handler.h>

Public Member Functions

 Handler (const HandlerSettings &handlerSettings)
 
virtual ~Handler ()
 
std::string licenseExpirationDate () const
 
void logDebug (const std::string &message)
 
void logError (const std::string &message)
 
void logMessage (const std::string &message)
 
void logWarning (const std::string &message)
 
void registerErrorListener (ErrorListener *listener)
 
void registerWarningListener (WarningListener *listener)
 
void registerHandlerStateChangeListener (HandlerStateChangeListener *listener)
 
void registerLogReplayListener (LogReplayListener *listener)
 
void registerReferenceListener (ReferenceListener *listener)
 
void registerSecurityDbListener (SecurityDbListener *listener)
 
void registerMarketPublicationListener (MarketPublicationListener *listener)
 
void registerMarketControlListener (MarketControlListener *listener)
 
void registerOrderBookUpdateListener (OrderBookUpdateListener *listener)
 
void registerPrivateManagementListener (PrivateManagementListener *listener)
 
void subscribe (const MarketSubscription &subscription)
 
void start ()
 
void stop ()
 
HandlerStates::Enum state () const
 

Static Public Member Functions

static const std::string & version ()
 

Detailed Description

Definition at line 43 of file Handler.h.

Constructor & Destructor Documentation

Handler ( const HandlerSettings handlerSettings)

Performs instance initialization.

Parameters
handlerSettingsdefines values for various settings which affect handler behavior like enabling logging during execution of the handler.
virtual ~Handler ( )
virtual

Finalizes the Handler.

Member Function Documentation

std::string licenseExpirationDate ( ) const

Date when license for the Handler will expire.

void logDebug ( const std::string &  message)

Log a debug message.

void logError ( const std::string &  message)

Log an error message.

void logMessage ( const std::string &  message)

Log an information message.

void logWarning ( const std::string &  message)

Log a warning message.

void registerErrorListener ( ErrorListener listener)

Registers the error listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerHandlerStateChangeListener ( HandlerStateChangeListener listener)

Registers the Handler state change listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerLogReplayListener ( LogReplayListener listener)

Registers the log replay listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerMarketControlListener ( MarketControlListener listener)

Registers the Market Control Messages listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerMarketPublicationListener ( MarketPublicationListener listener)

Registers the Market Publication Messages listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerOrderBookUpdateListener ( OrderBookUpdateListener listener)

Registers the order book update listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerPrivateManagementListener ( PrivateManagementListener listener)

Registers the Private Management Messages listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerReferenceListener ( ReferenceListener listener)

Registers the Reference listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerSecurityDbListener ( SecurityDbListener listener)

Registers the Security DB listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerWarningListener ( WarningListener listener)

Registers the warning listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void start ( )

Starts handler

Exceptions
exceptionin case of unable to establish TCP connection.
HandlerStates::Enum state ( ) const

Get handler state.

void stop ( )

Stops handler.

void subscribe ( const MarketSubscription subscription)

Subscribe on market.

static const std::string& version ( )
static

Get version of Handler.


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