-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Template #8
Conversation
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
b1a4b66
to
9a190f8
Compare
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
@@ -14,7 +15,7 @@ import kotlin.random.Random | |||
|
|||
@Service | |||
class GxfKafkaProducer( | |||
private val kafkaTemplate: KafkaTemplate<String, Any>, | |||
private val kafkaTemplate: KafkaTemplate<String, Measurement>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voor KOD zullen we waarschijnlijk meerdere producers krijgen, nl. voor meet-, status- en alarmberichten (en mogelijk ook nog andere zoals bijv registratie- en configuratieberichten van domain naar protocol)
Is Measurement dan voldoende dekkend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Het dient alleen als voorbeeld. ik doe verder niks er mee
import com.gxf.service.Measurement | ||
import com.gxf.service.VoltageMeasurement | ||
import org.gxf.service.Measurement | ||
import org.gxf.service.VoltageMeasurement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VoltageMeasurement is wel erg toegespitst op LSMeten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Het is alleen om als voorbeeld te dienen. Ik wil in deze module niet meer dan 1 objectje.
kotlin("jvm") version "1.9.10" apply false | ||
kotlin("plugin.spring") version "1.9.10" apply false | ||
kotlin("plugin.jpa") version "1.9.10" apply false | ||
id("com.github.davidmc24.gradle.plugin.avro") version "1.8.0" apply false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoort deze plugin niet enkel in de avro component thuis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
klopt, met apply false
zeggen we dat we het niet toepassen, alleen een versie defineren.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dat snap ik, mijn onderliggende issue was hierbij dat, als we een service gaan implementeren zonder gebruik te maken van Avro, we op meerdere plekken code moeten verwijderen...
(Is waarschijnlijk niet onder uit te komen, als je versiebeheer op een plek wil hebben...)
components/kafka/src/main/kotlin/org/gxf/servicetemplate/kafka/configuration/AvroSerializer.kt
Outdated
Show resolved
Hide resolved
...kotlin/org/gxf/servicetemplate/kafka/configuration/oauth/OAuthAuthenticateCallbackHandler.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Sander Verbruggen <[email protected]> Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
...kotlin/org/gxf/servicetemplate/kafka/configuration/oauth/OAuthAuthenticateCallbackHandler.kt
Outdated
Show resolved
Hide resolved
…/configuration/oauth/OAuthAuthenticateCallbackHandler.kt Co-authored-by: Sander Verbruggen <[email protected]> Signed-off-by: Jasper Kamerling <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
No description provided.