22#include <unordered_set>
142 friend struct Implementation::ReplayHelper;
Defines an interface through which the Handler notifies subscribers about errors occurred.
The Feed Engine machinery.
Defines an interface through which the Handler notifies subscribers about change of its state.
Handler & unsubscribe(Messaging::SecurityID securityId)
Removes security id from the security filter.
void registerWarningListener(WarningListener *listener)
Assigns listener for warnings occurred while executing handler.
Handler & unsubscribe(std::initializer_list< Messaging::SecurityID > securityIds)
Removes a few security ids from the security filter.
void registerHandlerStateListener(HandlerStateListener *listener)
Assigns listener for state change events occurred while executing handler.
void stop(bool wait)
Stop handler.
void registerErrorListener(ErrorListener *listener)
Assigns listener for errors occurred while executing handler.
void log(LogLevel::Enum logLevel, const std::string &str)
Logs the given user-level message to the handler log.
void start()
Start handler.
std::string licenseExpirationDate() const
Returns the license expiration date.
void log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Logs the given user-level message to the handler log.
Handler(const HandlerSettings &settings)
Performs instance initialization.
Handler & subscribe(Messaging::SecurityID securityId)
Adds security id to the security filter.
static const char * version()
Returns Handler's version.
void registerOrderBookListener(OrderBookListener *listener)
Assigns listener to receive notification about order book states while executing handler.
HandlerState::Enum state() const
Returns handler state.
virtual ~Handler()
Finalizes the Handler.
void replayPcap(const ReplayOptions &options, const FilesList &instrument, const FilesList &snapshot)
Replay pcap files.
Handler & subscribe(std::initializer_list< Messaging::SecurityID > securityIds)
Adds a few security ids to the security filter.
void registerMessageListener(MessageListener *listener)
Assigns listener to receive notifications when market data messages are received while executing hand...
void log(LogLevel::Enum logLevel, const char *logMessage)
Logs the given user-level message to the handler log.
void replayLogs(const ReplayOptions &options)
Starts replaying previously logged data.
Defines an interface through which the Handler notifies subscribers about warnings occurred.
UInt64 SecurityID
Security ID as defined by B3's Trading System.
std::vector< std::string > FilesList
Ordered list of files to be replayed.
ONIXS_B3_UMDF_MD_API void replayLog(const std::vector< Handler * > &handlers, const ReplayOptions &options, bool *stopRequest=nullptr)
Replays log files.
ONIXS_B3_UMDF_MD_API void replayPcap(const std::vector< Handler * > &handlers, const ReplayOptions &options, const FilesList &instrument, const FilesList &snapshot, bool *stopRequest=nullptr)
Replays pcap files.
Handler configuration settings.
Enum
Defines the state that the handler is in.
Defines params which affect replay.