Skip to content
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

Merged
merged 82 commits into from
Nov 30, 2021
Merged

Feature - First MQTT Draft #62

merged 82 commits into from
Nov 30, 2021

Conversation

pLeminoq
Copy link
Contributor

📜 Description

As the title says this PR replaces all RSB classes and interfaces with MQTT.

🔨 Breaking Changes

  • All RSB dependencies and classes were removed.
  • RPCMethod Annotation no longer works on methods of interfaces with generics (e.q. M requestStatus())

DivineThreepwood and others added 30 commits October 13, 2021 02:47
Copy link
Contributor Author

@pLeminoq pLeminoq left a 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() + "]";
Copy link
Contributor Author

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);
Copy link
Contributor Author

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);
Copy link
Contributor Author

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

@DivineThreepwood DivineThreepwood merged commit 5efd154 into dev Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants