Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
5aed17b7
Commit
5aed17b7
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Minor code clean up
parent
1af90ac2
No related branches found
No related tags found
1 merge request
!33
Fix workload generation for benchmark UC2
Pipeline
#827
passed
4 years ago
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java
+2
-5
2 additions, 5 deletions
...kloadgeneration/generators/AbstractWorkloadGenerator.java
with
2 additions
and
5 deletions
workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java
+
2
−
5
View file @
5aed17b7
...
@@ -100,11 +100,8 @@ public abstract class AbstractWorkloadGenerator<T>
...
@@ -100,11 +100,8 @@ public abstract class AbstractWorkloadGenerator<T>
entities
.
forEach
(
entity
->
{
entities
.
forEach
(
entity
->
{
final
T
message
=
entity
.
generateMessage
();
final
T
message
=
entity
.
generateMessage
();
final
long
initialDelay
=
random
.
nextInt
(
periodMs
);
final
long
initialDelay
=
random
.
nextInt
(
periodMs
);
final
Runnable
task
=
()
->
{
final
Runnable
task
=
()
->
this
.
transport
.
transport
(
message
);
this
.
transport
.
transport
(
message
);
this
.
executor
.
scheduleAtFixedRate
(
task
,
initialDelay
,
periodMs
,
TimeUnit
.
MILLISECONDS
);
};
this
.
executor
.
scheduleAtFixedRate
(
task
,
initialDelay
,
periodMs
,
TimeUnit
.
MILLISECONDS
);
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment