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;
246 virtual bool activated()
const = 0;
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);
const LogPlayerStatistics & statistics() const
LogPlayerSettings & sendDelay(unsigned delay)
Pause before sending data to the same source as it was sent before (in microseconds).
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
const std::string & ifaceA() const
Interface through which application must send data belonging to primary feed. If not specified...
LogPlayerSettings & ifaceB(const std::string &iface)
Interface through which application must send data belonging to secondary feed.
LogPlayerSettings & updateSendingTime(bool value)
Update the SendingTime field in the Binary Packet Header.
bool updateSendingTime() const
Update the SendingTime field in the Binary Packet Header.
LogPlayerSettings & channel(ChannelId value)
Identifies CME market data channel.
#define ONIXS_B3_UMDF_MD_EXPORTED
LogPlayerSettings & primaryFeed(const std::string &feed)
Defines primary feed for the feed group.
~LogPlayerSettings()
Cleans everything up.
LogPlayerSettings & useNaturalSendDelays(bool value)
Use delays from the log file. If true, sendDelay will be ignored.
ChannelId channel() const
Identifies CME market data channel.
const std::string & primaryFeed() const
Defines primary feed for the feed group.
LogPlayerSettings & simulateArbitrage(bool value)
Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only...
UInt32 ChannelId
Identifies channel.
LogPlayer's configuration settings.
LogPlayerSettings & connectivityConfigurationFile(const std::string &configurationFile)
Path to the connectivity configuration file from which to load feed connection settings.
LogPlayerSettings & packetsCount(unsigned long value)
The number of incremental packets to replay.
unsigned long packetsCount() const
The number of incremental packets to replay.
LogPlayerSettings & ifaceA(const std::string &iface)
Interface through which application must send data belonging to primary feed. If not specified...
void dump(std::ostream &out) const
bool useNaturalSendDelays() const
Use delays from the log file. If true, sendDelay will be ignored.
LogPlayerSettings & sourceSwitchDelay(unsigned delay)
Pause before sending data to the source which differs from the source data was sent before (in micros...
LogPlayerSettings()
Initializes parameters with default values.
bool simulateArbitrage() const
Simulates arbitrage on realtime feeds. By default, data is sent through primary feed only...
unsigned sendDelay() const
Pause before sending data to the same source as it was sent before (in microseconds).
#define ONIXS_B3_UMDF_MD_TESTING_NAMESPACE_BEGIN
#define ONIXS_B3_UMDF_MD_LTWT_CLASS
#define ONIXS_B3_UMDF_MD_TESTING_NAMESPACE_END
const std::string & logFile() const
Path to the log file.
unsigned sourceSwitchDelay() const
Pause before sending data to the source which differs from the source data was sent before (in micros...
LogPlayerSettings & logFile(const std::string &file)
Path to the log file.
const std::string & ifaceB() const
Interface through which application must send data belonging to secondary feed.
LogPlayer()
Initializes the instance according to the given settings.
std::ostream & operator<<(std::ostream &out, const LogPlayerStatistics &statistics)