70#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
126 : begin_(other.begin_)
134 return (begin_ >= end_);
141 return (begin_ <= timestamp && timestamp < end_);
171 begin_ = other.begin_;
230template <
class DataSource,
class DataSourceLess = std::less<DataSource> >
235 typedef std::map<DataSource, DataSource, DataSourceLess>
Aliases;
249 : delayer_(other.delayer_)
250 , settingsUse_(other.settingsUse_)
251 , aliases_(other.aliases_)
252 , timeSpan_(other.timeSpan_)
253 , speed_(other.speed_)
266 settingsUse_ = policy;
329 delayer_ = other.delayer_;
331 settingsUse_ = other.settingsUse_;
333 aliases_ = other.aliases_;
335 timeSpan_ = other.timeSpan_;
337 speed_ = other.speed_;
382 using Base::settingsUse;
414 using Base::settingsUse;
433 Handler* handlers[] = {&handler};
449 Handler* handlers[] = {&handler};
475 Handler* handlers[] = {&handler};
513 Handler* handlers[] = {&handler};
515 replayPcapFiles(snapshots, snapshotsApplyOptions, incrementals, handlers, 1, supplements);
522 Handler* handlers[] = {&handler};
547 Handler* handlers[] = {&handler};
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_OVERRIDE
Replay supplements for the CME DataMine historical data replay functionality.
DatamineReplaySettings()
Initializes settings with the default values.
HandlerSettingsUse::Enum settingsUse() const
Settings aren't stored in Datamine thus constant value is returned.
Encapsulates all the machinery related with market data processing from CME Market Data Platform.
Replay supplements for the PCAP replay functionality.
PcapReplaySettings()
Initializes settings with the default values.
HandlerSettingsUse::Enum settingsUse() const
Settings aren't stored in PCAPs thus constant value is returned.
Various supplemental settings affecting the way the logged data is replayed.
ReplayDelayer & delayPolicy() const
Indicates policy for implementing replay delay.
ReplaySpeed::Enum speed() const
Indicates processing speed policy.
void delayPolicy(ReplayDelayer &delayer)
Sets a policy for implementing replay delay.
const ReplaySpan & timeSpan() const
Time span for which entries are to be processed.
ReplaySettings()
Initializes the settings with the default values.
HandlerSettingsUse::Enum settingsUse() const
Handler settings use policy.
void speed(ReplaySpeed::Enum policy)
Defines processing speed.
Aliases & aliases()
Aliases to be used during the replay.
const Aliases & aliases() const
Aliases to be used during the replay.
ReplaySpan & timeSpan()
Time span for which entries are to be processed.
void settingsUse(HandlerSettingsUse::Enum policy)
Defines handler settings use policy.
ReplaySettings & operator=(const ReplaySettings &other)
Re-initializes as a copy of the other one.
ReplaySettings(const ReplaySettings &other)
Initializes as a copy of the other one.
std::map< DataSource, DataSource, DataSourceLess > Aliases
The table of data source aliases.
Defines range of log entries to be replayed.
const Timestamp & end() const
Indicates the end of the range.
ReplaySpan & operator=(const ReplaySpan &other)
Re-initializes as a copy of the other one.
bool empty() const
Indicates whether span is empty or not.
void begin(const Timestamp &value)
Updates the beginning of the range.
void end(const Timestamp &value)
Indicates the end of the range.
ReplaySpan(const Timestamp &begin, const Timestamp &end)
Initializes the instance according to the given bounds.
const Timestamp & begin() const
Indicates the beginning of the range.
bool contain(const Timestamp ×tamp) const
Indicates whether the given timestamp belongs to the given time span.
ReplaySpan(const ReplaySpan &other)
Initializes the instance as a copy of the other one.
ReplaySpan()
Initializes empty span.
Represents time interval.
Represents time point without time-zone information.
void gatherPcapFiles(FileList &files, const std::string &location, const std::string &ext)
Gathers files which are stored in the given folder with the given extension.
void replayPcapFiles(const FileList &, Handler **, size_t, const PcapReplaySettings &)
Replays the given list of PCAP files for the given Handlers according to the given settings.
void gatherLogFiles(FileList &, ChannelId, const std::string &)
Gathers log files logs which are available for given channel and are stored in a given folder.
void replayDatamineFiles(const FileList &, Handler **, size_t, const DatamineReplaySettings &)
Replays the given list of Datamine files for the given Handlers according to the given settings.
void replayLogFiles(const FileList &, Handler **, size_t, const LogReplaySettings &)
Extracts market data stored in the given log files and pushes it to the given handlers for further pr...
ReplaySettings< NetFeedId > LogReplaySettings
Replay supplements for log replay functionality.
DatamineReplaySettings::Aliases ChannelIdAliases
Collection of channels to be used by the CME Datamine historical file replay to replace captured sour...
void gatherFiles(FileList &, const std::string &, const std::string &)
Gathers files which are stored in the given folder with the given extension.
LogReplaySettings::Aliases FeedIdAliases
Collection of logged data sources (feed identifiers) to be used by the Log Replay to replace logged s...
std::vector< std::string > FileList
Ordered list of logs to be replayed.
PcapReplaySettings::Aliases NetAddressAliases
Collection of data sources (feed identifiers) to be used by the PCAP file replay to replace captured ...
void mergeDatamineFiles(const FileList &inFileNames, std::string outFileName, const ReplaySpan &timeSpan=ReplaySpan())
Merges the given Datamine files into a single one. The output file is gzipped.
UInt32 ChannelId
Identifies CME channel.
Defines whether processing and other settings must be extracted from logs and used during the replay,...
@ Suggested
Settings affecting the way the data is processed must be extracted from the logs and applied to the H...
@ AsIs
Handler settings aren't touched and used as they are during the replay.
Implements the replay delay by polling in the userspace.
static ReplayDelayer & service()
Returns the instance reference.
void onDelay(const TimeSpan &delay) override
Implements the delay between packets.
Controls the replay delay.
virtual void onDelay(const TimeSpan &delay)=0
Implements the delay between packets.
Controls speed of market data replay.
Enum
Controls speed of market data replay.
@ X2
Data is replayed two times faster in compare to the original speed at which the Handler was receiving...
@ NoDelay
Replays run at maximal speed.
@ Original
Data is replayed with the original speed.
Implements the replay delay using the sleep system call.
static ReplayDelayer & service()
Returns the instance reference.
void onDelay(const TimeSpan &delay) override
Implements the delay between packets.
A Marker instructing the log replay procedure to use Handler settings as they are without applying an...