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

IGNITE-22441 Add parameter object to Data Streamer #3971

Merged
merged 16 commits into from
Jun 21, 2024

Conversation

ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Jun 21, 2024

  • Add ReceiverDescriptor parameter object to Data Streamer similar to JobDescriptor in Compute API.
  • Unlike Compute, DataStreamerOptions are not included in ReceiverDescriptor, because semantically they are not related: options affect client-side streaming logic, and do not affect the receiver.

https://issues.apache.org/jira/browse/IGNITE-22441

* @return This builder.
*/
public Builder units(List<DeploymentUnit> units) {
this.units = units;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we copy List?

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 don't copy in JobDescriptor. Also, units() property exposes a mutable List, so we would need to copy there as well for full protection. I don't think it's worth it, let's keep as is for now.

@ptupitsyn ptupitsyn merged commit c662935 into apache:main Jun 21, 2024
1 check passed
@ptupitsyn ptupitsyn deleted the ignite-22441 branch June 21, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants