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
DatamineReplaySettings()
Initializes settings with the default values.
HandlerSettingsUse::Enum settingsUse() const
Replay supplements for the PCAP replay functionality.
PcapReplaySettings()
Initializes settings with the default values.
HandlerSettingsUse::Enum settingsUse() const
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.
const Aliases & aliases() const
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)
const Timestamp & begin() const
Indicates the beginning of the range.
bool contain(const Timestamp ×tamp) const
ReplaySpan(const ReplaySpan &other)
ReplaySpan()
Initializes empty span.
Represents time point without time-zone information.
void gatherPcapFiles(FileList &files, const std::string &location, const std::string &ext)
void replayPcapFiles(const FileList &, Handler **, size_t, const PcapReplaySettings &)
void gatherLogFiles(FileList &, ChannelId, const std::string &)
void replayDatamineFiles(const FileList &, Handler **, size_t, const DatamineReplaySettings &)
void replayLogFiles(const FileList &, Handler **, size_t, const LogReplaySettings &)
ReplaySettings< NetFeedId > LogReplaySettings
Replay supplements for log replay functionality.
DatamineReplaySettings::Aliases ChannelIdAliases
void gatherFiles(FileList &, const std::string &, const std::string &)
LogReplaySettings::Aliases FeedIdAliases
std::vector< std::string > FileList
Ordered list of logs to be replayed.
PcapReplaySettings::Aliases NetAddressAliases
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.
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.
@ 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.