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
09e71578
Commit
09e71578
authored
3 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Clear code style problems + doku
parent
4a835853
No related branches found
No related tags found
1 merge request
!208
Add benchmark implementations for Hazelcast Jet
Pipeline
#7269
passed
3 years ago
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/hazelcastjet-commons/src/main/java/rocks/theodolite/benchmarks/commons/hazelcastjet/KafkaPropertiesBuilder.java
+13
-2
13 additions, 2 deletions
...nchmarks/commons/hazelcastjet/KafkaPropertiesBuilder.java
with
13 additions
and
2 deletions
theodolite-benchmarks/hazelcastjet-commons/src/main/java/rocks/theodolite/benchmarks/commons/hazelcastjet/KafkaPropertiesBuilder.java
+
13
−
2
View file @
09e71578
...
...
@@ -8,6 +8,11 @@ import org.apache.kafka.clients.consumer.ConsumerConfig;
import
org.apache.kafka.clients.producer.ProducerConfig
;
/**
* Generalized builder for Kafka properties.
* Will always set AUTO_OFFSET_RESET_CONFIG to earliest
*
*/
public
class
KafkaPropertiesBuilder
{
private
static
final
String
TRUE
=
"true"
;
...
...
@@ -19,9 +24,12 @@ public class KafkaPropertiesBuilder {
*
* @param kafkaBootstrapServerDefault Default bootstrap server if not set by environment.
* @param schemaRegistryUrlDefault Default schema registry URL if not set by environment.
* @param applicationName Used to set the group id to commit the offsets
* @param keyDeserializer Classname for the key deserializer.
* @param valueDeserializer Classname for the value deserializer.
* @return A Kafka Properties Object containing the values needed for a Pipeline.
*/
public
Properties
buildKafkaInputReadPropsFromEnv
(
final
String
kafkaBootstrapServerDefault
,
public
Properties
buildKafkaInputReadPropsFromEnv
(
final
String
kafkaBootstrapServerDefault
,
//NOPMD
final
String
schemaRegistryUrlDefault
,
final
String
applicationName
,
final
String
keyDeserializer
,
...
...
@@ -54,10 +62,13 @@ public class KafkaPropertiesBuilder {
* Builds Kafka Properties used for the UC4 Benchmark pipeline.
*
* @param kafkaBootstrapServerDefault Default bootstrap server if not set by environment.
* @param schemaRegistryUrlDefault Default schema registry URL if not set by environment.
* @param keySerializer Classname for the key serializer.
* @param valueSerializer Classname for the value serializer.
* @return A Kafka Properties Object containing the values needed for a Hazelcast Jet UC4
* Pipeline.
*/
public
Properties
buildKafkaWritePropsFromEnv
(
final
String
kafkaBootstrapServerDefault
,
public
Properties
buildKafkaWritePropsFromEnv
(
final
String
kafkaBootstrapServerDefault
,
//NOPMD
final
String
schemaRegistryUrlDefault
,
final
String
keySerializer
,
final
String
valueSerializer
)
{
...
...
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