Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

[BAHIR-212] Add MQTT Connector for Flink #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yuruguo
Copy link

@yuruguo yuruguo commented Nov 22, 2020

Java library to integrate MQTT protocol and Apache Flink.
Main goal is to be able to read/write data from/to MQTT using the Flink DataStream API.

@yuruguo
Copy link
Author

yuruguo commented Nov 23, 2020

@lresende @mbalassi @eskabetxe @gyfora Appreciate for your time to review this PR. thanks!

Copy link
Member

@eskabetxe eskabetxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yuruguo for the contribution :)

I have added a few comments.

}

private boolean connect() throws Exception {
this.serverUrl = properties.getProperty(MqttConfig.SERVER_URL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need to save this values?
count be used directly where needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to use directly where needed, but this values may be used in multiple places, such as properties.getProperty(MqttConfig.SERVER_URL), so saving them separately can ensure the code is concise.

Properties mqttProperties = new Properties();

// mqtt server url = tcp://<Org_ID>.messaging.internetofthings.ibmcloud.com:1883
mqttProperties.setProperty(MqttConfig.SERVER_URL,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use some docker image instead of a external system?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants