move kafka topics creator into events-processors
This commit is contained in:
parent
1c9a93b457
commit
6035c2eaa0
7 changed files with 32 additions and 16 deletions
|
|
@ -1,10 +0,0 @@
|
|||
package dev.adamko.kafkatorio.processor.admin
|
||||
|
||||
import dev.adamko.kafkatorio.processor.config.ApplicationProperties
|
||||
|
||||
|
||||
fun main() {
|
||||
val appProps = ApplicationProperties.load()
|
||||
val admin = KafkatorioKafkaAdmin(appProps)
|
||||
admin.createKafkatorioTopics()
|
||||
}
|
||||
|
|
@ -18,12 +18,12 @@ import org.apache.kafka.streams.Topology
|
|||
import org.apache.kafka.streams.TopologyDescription
|
||||
|
||||
|
||||
private val appProps = ApplicationProperties.load()
|
||||
|
||||
suspend fun launchTopology(
|
||||
id: String,
|
||||
topology: Topology,
|
||||
additionalProperties: Map<String, String> = mapOf(),
|
||||
appProps: ApplicationProperties,
|
||||
): Unit = coroutineScope {
|
||||
|
||||
val props: Properties = appProps.kafkaStreamsConfig.toProperties()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue