-
Notifications
You must be signed in to change notification settings - Fork 461
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
[WFCORE-6658] Convert ControlledProcessStateService to the current MS… #5824
Conversation
@ropalka FYI. |
bb841d0
to
658f5f3
Compare
658f5f3
to
1d3bd88
Compare
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.
LGTM, @ropalka could you also take a quick look?
My very minor detail is that now the new SimpleService that provides the ProcessStateNotifier is not invoking consumer.accept(null)
on the stop method as we did in ControlledProcessStateService:61, I don't think it could be an issue, but I am not certainly sure if that could cause any unexpected side effect. It is done when the service is being stopped, so it looks like safe.
@@ -221,6 +230,7 @@ private synchronized void establishModelControllerClient(ControlledProcessState. | |||
if (state != ControlledProcessState.State.STOPPING && state != ControlledProcessState.State.STOPPED && serviceContainer != null) { | |||
ModelControllerClientFactory clientFactory; | |||
try { | |||
// TODO replace this in start() with the ServiceActivator approach we used to capture the ProcessStateNotifier |
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.
I've just added WFCORE-6662 as a follow up to cover this.
@ropalka FYI in case you have missed it. |
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.
LGTM
Thanks @bstansberry and @ropalka |
…C API
https://issues.redhat.com/browse/WFCORE-6658