-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring kafka to kafka pipe to support SPI and multiple sinks (#286)
- Loading branch information
nsahai8
authored
Oct 5, 2020
1 parent
08d246b
commit 2becfed
Showing
74 changed files
with
1,545 additions
and
1,501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ target/ | |
*/.project | ||
*/.settings | ||
*/.classpath | ||
*/.factorypath | ||
*/.factorypath | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...rc/main/java/com/expedia/www/haystack/pipes/commons/kafka/config/KafkaConsumerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package com.expedia.www.haystack.pipes.commons.kafka.config; | ||
|
||
import com.expedia.www.haystack.pipes.commons.kafka.KafkaConfig; | ||
|
||
public class KafkaConsumerConfig implements KafkaConfig { | ||
|
||
private String brokers; | ||
|
||
private int port; | ||
|
||
private String fromTopic; | ||
|
||
private String toTopic; | ||
|
||
private int threadCount; | ||
|
||
private int sessionTimeout; | ||
|
||
private int maxWakeUps; | ||
|
||
private int wakeUpTimeoutMs; | ||
|
||
private long pollTimeoutMs; | ||
|
||
private long commitMs; | ||
|
||
public KafkaConsumerConfig(final String brokers, final int port, final String fromTopic, final String toTopic, final int threadCount, final int sessionTimeout, final int maxWakeUps, final int wakeUpTimeoutMs, final long pollTimeoutMs, final long commitMs) { | ||
this.brokers = brokers; | ||
this.port = port; | ||
this.fromTopic = fromTopic; | ||
this.toTopic = toTopic; | ||
this.threadCount = threadCount; | ||
this.sessionTimeout = sessionTimeout; | ||
this.maxWakeUps = maxWakeUps; | ||
this.wakeUpTimeoutMs = wakeUpTimeoutMs; | ||
this.pollTimeoutMs = pollTimeoutMs; | ||
this.commitMs = commitMs; | ||
} | ||
|
||
@Override | ||
public String brokers() { | ||
return this.brokers; | ||
} | ||
|
||
@Override | ||
public int port() { | ||
return this.port; | ||
} | ||
|
||
@Override | ||
public String fromtopic() { | ||
return this.fromTopic; | ||
} | ||
|
||
@Override | ||
public String totopic() { | ||
return this.toTopic; | ||
} | ||
|
||
@Override | ||
public int threadcount() { | ||
return this.threadCount; | ||
} | ||
|
||
@Override | ||
public int sessiontimeout() { | ||
return this.sessionTimeout; | ||
} | ||
|
||
@Override | ||
public int maxwakeups() { | ||
return this.maxWakeUps; | ||
} | ||
|
||
@Override | ||
public int wakeuptimeoutms() { | ||
return this.wakeUpTimeoutMs; | ||
} | ||
|
||
@Override | ||
public long polltimeoutms() { | ||
return this.pollTimeoutMs; | ||
} | ||
|
||
@Override | ||
public long commitms() { | ||
return this.commitMs; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.