-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add autoIncremented parameter to batch-post in bmqtool #357
Conversation
2b067ba
to
e7bfc4f
Compare
A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool. It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber. Signed-off-by: Stanislav Yuzvinsky <[email protected]>
e7bfc4f
to
b750e98
Compare
@@ -268,6 +268,10 @@ class Parameters { | |||
|
|||
bsl::vector<Subscription> d_subscriptions; | |||
|
|||
bsl::string d_autoIncrementedField; | |||
// A name of a property to put auto-incremented values | |||
// in batch-posting mode. |
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.
Let's use Doxygen style comment, ///
and before the variable
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.
The style is derived from the style used for all private variables in this file. Applying doxygen style for just one field looks impractical.
@@ -95,6 +95,10 @@ class PostingContext { | |||
bmqa::MessageProperties d_properties; | |||
// Properties that will be added to a posted message | |||
|
|||
unsigned int d_autoIncrementedValue; | |||
// A value that will be auto-incremented and added to | |||
// the message properties. |
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.
Might convert to Doxygen style comment
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.
the same comment about style uniformity
Co-authored-by: Evgeny Malygin <[email protected]> Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]> Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]> Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]> Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]> Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Signed-off-by: Stanislav Yuzvinsky <[email protected]>
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!
A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool. It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber. Signed-off-by: Stanislav Yuzvinsky <[email protected]> Co-authored-by: Evgeny Malygin <[email protected]>
A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool. It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber. Signed-off-by: Stanislav Yuzvinsky <[email protected]> Co-authored-by: Evgeny Malygin <[email protected]>
A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool. It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber. Signed-off-by: Stanislav Yuzvinsky <[email protected]> Co-authored-by: Evgeny Malygin <[email protected]>
A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool.
It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber.