Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ConstantRatePublisher(sparkSession: SparkSession, kafkaProperties: Propert
0.to(9).foreach { microBatch => //SUPPOSED TO LAST 100 MS
smallGroupsList.foreach { smallList => //SUPPOSED TO LAST 5 MS
smallList.foreach { observation =>
0.to(Math.round(ConfigUtils.dataVolume.toInt/3.0).toInt).foreach { volumeIteration =>
1.to(ConfigUtils.dataVolume).foreach { volumeIteration =>
if (observation.message.contains("flow")) {
flowStats.mark()
val msg = new ProducerRecord[String, String](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class FaultyEventPublisher(sparkSession: SparkSession, kafkaProperties: Properti
0.to(9).foreach { microBatch => //SUPPOSED TO LAST 100 MS
smallGroupsList.foreach { smallList => //SUPPOSED TO LAST 5 MS
smallList.foreach { observation =>
0.to(Math.round(ConfigUtils.dataVolume.toInt / 3.0).toInt).foreach { volumeIteration =>
1.to(ConfigUtils.dataVolume).foreach { volumeIteration =>
if (sendError & index == 0 & ConfigUtils.publisherNb.toInt == 1) { // at minute 15 send an error
val msg = new ProducerRecord[String, String](
ConfigUtils.flowTopic,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SingleBurstPublisher(sparkSession: SparkSession, kafkaProperties: Properti
0.to(9).foreach { microBatch => //SUPPOSED TO LAST 100 MS
smallGroupsList.foreach { smallList => //SUPPOSED TO LAST 5 MS
smallList.foreach { observation: Observation =>
0.to(Math.round(volume/3.0).toInt).foreach { volumeIteration =>
1.to(volume).foreach { volumeIteration =>
if (observation.message.contains("flow")) {
flowStats.mark()
val msg = new ProducerRecord[String, String](
Expand Down