-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature - First MQTT Draft #62
Conversation
...roller/src/main/java/org/openbase/jul/communication/controller/AbstractControllerServer.java
Outdated
Show resolved
Hide resolved
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.
Looks good to me.
} | ||
return getClass().getSimpleName() + "[" + publisher.getScope() + "]"; |
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 think publisher.getScope()
now returns our scope proto type whose toString() prints a multi line string. Maybe we this should use the ScopeProcesser.generateStringRep()
method.
this.remoteServerWatchDog.addObserver(middlewareFailureObserver); | ||
} catch (RuntimeException | InstantiationException ex) { | ||
throw new CouldNotPerformException("Could not create RemoteServer on scope [" + scope + "]!", ex); | ||
this.rpcClient = factory.createRPCClient(ScopeProcessor.concat(scope, AbstractControllerServer.SCOPE_SUFFIX_CONTROL), communicatorConfig); |
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.
We could remove the scope suffix as the MQTT RPC implementation add /rpc
to its initialization scope anyway.
this.subscriberWatchDog.addObserver(middlewareFailureObserver); | ||
this.rpcClientWatchDog.addObserver(middlewareFailureObserver); | ||
} catch (RuntimeException ex) { | ||
throw new CouldNotPerformException("Could not create RPCClient on scope [" + scope + "]!", ex); |
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.
Scope should be replaced by string rep of ScopeProcessor
📜 Description
As the title says this PR replaces all RSB classes and interfaces with MQTT.
🔨 Breaking Changes
M requestStatus()
)