-
Notifications
You must be signed in to change notification settings - Fork 62
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
Issue 187: Add MQTT to Pravega bridge sample #188
base: dev
Are you sure you want to change the base?
Issue 187: Add MQTT to Pravega bridge sample #188
Conversation
c736fd4
to
306d00b
Compare
@claudiofahey due to issues we had in previous releases merging |
1a0aea4
to
0c6deca
Compare
Signed-off-by: Claudio Fahey <[email protected]>
0c6deca
to
7b2d38e
Compare
suggested changes have been implemented
This PR is ready for re-review. |
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 looks good. I only have a few small comments and questions.
@@ -0,0 +1,51 @@ | |||
package io.pravega.example.mqtt; |
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.
Missing license header.
@@ -0,0 +1,82 @@ | |||
package io.pravega.example.mqtt; |
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.
Missing license header.
@@ -0,0 +1,60 @@ | |||
package io.pravega.example.mqtt; |
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.
Missing license header.
@@ -0,0 +1,56 @@ | |||
package io.pravega.example.mqtt; |
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.
Missing license header.
@@ -0,0 +1,76 @@ | |||
package io.pravega.example.mqtt; |
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.
Missing license header.
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
Copyright (c) 2017 Dell Inc., or its subsidiaries. All Rights Reserved. |
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.
Remove year from copyright statement.
@@ -0,0 +1,55 @@ | |||
plugins { |
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 are adding license headers to such gradle files too, see pravega/pravega.
# Pravega Properties | ||
controllerUri=tcp://127.0.0.1:9090 | ||
scope=examples | ||
stream=mqtt-example |
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.
For a sample, writing to a single stream is ok, but in general, isn't it possible that we have use cases in which the same bridge writes to different streams, perhaps inferring the stream from the event data?
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, just few minor comments.
|
||
private void loadProperties(String confDir) throws Exception{ | ||
Properties prop = new Properties(); | ||
try ( |
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.
Nit: In Pravega core, the style of these statements is in one line.
|
||
public class ApplicationMain { | ||
|
||
private static Logger log = LoggerFactory.getLogger( ApplicationMain.class ); |
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.
Nit: extra spaces within parenthesis.
@@ -0,0 +1,39 @@ | |||
package io.pravega.example.mqtt; |
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.
Agree on the license headers missing.
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
Copyright (c) 2017 Dell Inc., or its subsidiaries. All Rights Reserved. |
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.
Same here about removing year from header.
@fpj @claudiofahey do we want to merge this for 0.8? |
Add MQTT to Pravega bridge sample.
A sample application reads events from MQTT and writes them to a Pravega stream.