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
a21b77ad
Commit
a21b77ad
authored
3 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Add null check for beam ActivePowerReader
parent
b554b04c
No related branches found
No related tags found
1 merge request
!187
Migrate Beam benchmark implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaActivePowerRecordReader.java
+9
-0
9 additions, 0 deletions
...lite/commons/beam/kafka/KafkaActivePowerRecordReader.java
with
9 additions
and
0 deletions
theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaActivePowerRecordReader.java
+
9
−
0
View file @
a21b77ad
...
...
@@ -28,11 +28,20 @@ public class KafkaActivePowerRecordReader extends
final
Map
<
String
,
Object
>
consumerConfig
)
{
super
();
if
(
bootstrapServer
==
null
)
{
throw
new
IllegalArgumentException
(
"bootstrapServer is null"
);
}
if
(
inputTopic
==
null
)
{
throw
new
IllegalArgumentException
(
"inputTopic is null"
);
}
// Check if boostrap server and inputTopic are defined
if
(
bootstrapServer
.
isEmpty
()
||
inputTopic
.
isEmpty
())
{
throw
new
IllegalArgumentException
(
"bootstrapServer or inputTopic missing"
);
}
reader
=
KafkaIO
.<
String
,
ActivePowerRecord
>
read
()
.
withBootstrapServers
(
bootstrapServer
)
...
...
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