33 namespace Implementation {
struct PcapPeplayHelper; }
44 virtual void onReplayError (
const std::string& errorDescription) = 0;
47 virtual void onReplayFinished() = 0;
63 ConstantPacketReplayDelay = 1,
67 NaturalPacketReplayDelay = 2
72 void ONIXS_EUREX_EMDI_API
gatherFiles(FilesList* gatheredFiles,
const std::string& root,
const std::string& extension);
76 void gatherLogs(FilesList* gatheredLogs,
const std::string& root)
105 : listener(defaultReplayListener())
106 , packetReplayDelay(0)
107 , playSpeedMultiplier(1)
108 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
114 ReplayOptions (
const std::string& filesRoot,
const std::string& filesExtention =
".log")
115 : listener(defaultReplayListener())
116 , packetReplayDelay(0)
117 , playSpeedMultiplier(1)
118 , replayMode(
ReplayMode::ConstantPacketReplayDelay)
124 ONIXS_EUREX_EMDI_API
static ReplayListener* defaultReplayListener();
131 explicit NoDelayReplay(
const std::string& filesRoot,
const std::string& filesExtention =
".log");
141 explicit OriginalDelayReplay(
const std::string& filesRoot,
const std::string& filesExtention =
".log");
144 OriginalDelayReplay();
151 explicit X2SpeedReplay(
const std::string& filesRoot,
const std::string& filesExtention =
".log");
Set the ReplayOptions to run the replay at maximal speed.
X2SpeedReplay()
Initializes instance with default values.
OriginalDelayReplay()
Initializes instance with default values.
NoDelayReplay()
Initializes instance with default values.
void gatherFiles(FilesList *gatheredFiles, const std::string &root, const std::string &extension)
Gathers files which are stored in a given folder.
ReplayMode::Enum replayMode
Replay mode. The default value is ReplayMode::ConstantPacketReplayDelay.
Defines params which affect replay.
Set the ReplayOptions to replay the data two times faster than recorded.
std::vector< std::string > FilesList
float playSpeedMultiplier
ReplayOptions(const std::string &filesRoot, const std::string &filesExtention=".log")
Initializes with all the files which are available and stored in a given folder.
ReplayOptions()
Initializes instance with default values.
unsigned int packetReplayDelay
ReplayListener * listener
Instance to notify about replay events.
Listening interface for log replay-related events.
void gatherLogs(FilesList *gatheredLogs, const std::string &root)
Gathers log files which are stored in a given folder.
Set the ReplayOptions to run the replay with the original speed.