-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-25359 BinaryStreams moved to ignite-binary-impl #12188
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
Conversation
import java.nio.ByteBuffer; | ||
|
||
/** | ||
* Utility class to provide static methods to create {@link BinaryInputStream} or {@link BinaryOutputStream} in different modes. |
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.
Javadoc is incorrect, it is not a utility class with a bunch of static methods but an interface suitable for loading via ServiceLoader mechanism.
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.
Fixed
static { | ||
Iterator<BinaryStreamsFactory> factories = CommonUtils.loadService(BinaryStreamsFactory.class).iterator(); | ||
|
||
A.ensure(factories.hasNext(), "BinaryStreamsFactory implementation not found. Please, add ignite-binary-impl to classpath"); |
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.
I suggest to be more specific in this error message and give a hint that we tried and failed to load a service from classpath.
How about Implementation for BinaryStreamsFactory service not found. Please add ignite-binary-impl to classpath
.
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.
Fixed
I suggest to add a README.txt/README.md file to ignite-binary-impl module with a short description of what this module is about and how it is supposed to use it. Module's name is very general and doesn't provide a lot of information though the module is rather important for developers in the community. |
@sergey-chugunov-1985 README.txt for both ignite-binary-api, ignite-binary-impl added. |
|
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
the
green visa
attached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.