87 return configurationFile_;
94 configurationFile_ = configurationFile;
116 return useNaturalSendDelays_;
122 useNaturalSendDelays_ = value;
130 return updateSendingTime_;
136 updateSendingTime_ = value;
144 return sourceSwitchDelay_;
150 sourceSwitchDelay_ = delay;
172 return simulateArbitrage_;
178 simulateArbitrage_ = value;
216 return packetsCount_;
222 packetsCount_ = value;
228 std::string logFile_;
230 std::string configurationFile_;
231 unsigned sendDelay_ = 100;
232 bool useNaturalSendDelays_ =
false;
233 bool updateSendingTime_ =
false;
234 unsigned sourceSwitchDelay_ = 100000;
235 std::string primaryFeed_ =
"A";
236 bool simulateArbitrage_ =
false;
239 unsigned long packetsCount_ = 0xffffffff;
258 size_t incrementalCounter_ = 0;
259 size_t snapshotCounter_ = 0;
260 size_t instrumentCounter_ = 0;
272 void dump(std::ostream& out)
const;
277 statistics.
dump(out);
#define ONIXS_B3_UMDF_MD_TESTING_NAMESPACE_BEGIN
#define ONIXS_B3_UMDF_MD_TESTING_NAMESPACE_END
#define ONIXS_B3_UMDF_MD_EXPORTED
#define ONIXS_B3_UMDF_MD_LTWT_CLASS
LogPlayer's configuration settings.
LogPlayerSettings & sendDelay(unsigned delay)
Pause before sending data to the same source as it was sent before (in microseconds).
bool useNaturalSendDelays() const
Use delays from the log file. If true, sendDelay will be ignored.
unsigned sendDelay() const
Pause before sending data to the same source as it was sent before (in microseconds).
LogPlayerSettings & simulateArbitrage(bool value)
Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only.
LogPlayerSettings & packetsCount(unsigned long value)
The number of incremental packets to replay.
bool updateSendingTime() const
Update the SendingTime field in the Binary Packet Header.
const std::string & ifaceB() const
Interface through which application must send data belonging to secondary feed.
LogPlayerSettings & connectivityConfigurationFile(const std::string &configurationFile)
Path to the connectivity configuration file from which to load feed connection settings.
LogPlayerSettings & logFile(const std::string &file)
Path to the log file.
bool simulateArbitrage() const
Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only.
LogPlayerSettings & sourceSwitchDelay(unsigned delay)
Pause before sending data to the source which differs from the source data was sent before (in micros...
LogPlayerSettings & ifaceA(const std::string &iface)
Interface through which application must send data belonging to primary feed. If not specified,...
const std::string & ifaceA() const
Interface through which application must send data belonging to primary feed. If not specified,...
LogPlayerSettings & channel(ChannelId value)
Identifies CME market data channel.
LogPlayerSettings & updateSendingTime(bool value)
Update the SendingTime field in the Binary Packet Header.
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
const std::string & logFile() const
Path to the log file.
~LogPlayerSettings()
Cleans everything up.
const std::string & primaryFeed() const
Defines primary feed for the feed group.
unsigned sourceSwitchDelay() const
Pause before sending data to the source which differs from the source data was sent before (in micros...
LogPlayerSettings & useNaturalSendDelays(bool value)
Use delays from the log file. If true, sendDelay will be ignored.
LogPlayerSettings & primaryFeed(const std::string &feed)
Defines primary feed for the feed group.
LogPlayerSettings & ifaceB(const std::string &iface)
Interface through which application must send data belonging to secondary feed.
LogPlayerSettings()
Initializes parameters with default values.
ChannelId channel() const
Identifies CME market data channel.
unsigned long packetsCount() const
The number of incremental packets to replay.
void dump(std::ostream &out) const
void update(FeedType::Enum type)
void run(const LogPlayerSettings &settings, const Interrupter *interrupter=nullptr, const PacketNotifier *packetNotifier=nullptr)
Starts playing of the log, until the interrupter is activated or the log is played totally.
const LogPlayerStatistics & statistics() const
LogPlayer()
Initializes the instance according to the given settings.
std::ostream & operator<<(std::ostream &out, const LogPlayerStatistics &statistics)
UInt32 ChannelId
Identifies channel.
virtual bool activated() const =0
Returns the Interrupter instance state.
virtual void onPacketProcessed(FeedType::Enum) const =0
Returns the Interrupter instance state.