-
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
[TH2-4559] Migration to processor-core #3
Conversation
@isengrims @OptimumOpium we need a separate target branch related to book and page, for example |
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/Microservice.kt
Outdated
Show resolved
Hide resolved
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/cfg/ProcessorConfiguration.kt
Outdated
Show resolved
Hide resolved
@AutoService(IProcessorFactory::class) | ||
class SenseProcessorFactory : IProcessorFactory { | ||
private val processorProvider = ServiceLoaderProcessorProvider.create<EventProcessor, EventProcessorFactory<*>>() | ||
private val resources: Deque<() -> Unit> = ConcurrentLinkedDeque() |
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.
It is redundant queue, because the factory doesn't control resources. Processor should close all resources on Close method call
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.
Please remove unused variable
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/source/processor/SenseProcessorFactory.kt
Outdated
Show resolved
Hide resolved
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/source/processor/SenseProcessor.kt
Outdated
Show resolved
Hide resolved
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/source/processor/SenseProcessor.kt
Outdated
Show resolved
Hide resolved
sense-app/src/main/kotlin/com/exactpro/th2/sense/app/source/processor/SenseProcessorFactory.kt
Outdated
Show resolved
Hide resolved
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2022 Exactpro (Exactpro Systems Limited) | |||
* Copyright 2023-2023 Exactpro (Exactpro Systems Limited) |
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.
Should be either 2022-2023
or just 2023
No description provided.