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

Integrated Async Java Client #558

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Mar 13, 2023

Description

To invoke the Actions residing in OpenSearch. Extensions will use Java Client to call the action using REST requests available. Currently, we support synchronous Java Client. As AD plugin uses asynchronous request calls, create an async Java Client for the same.

This is needed for the migration of Start Detector.

Issues Resolved

Fixes #557
Fixes #296

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.89%. Comparing base (0da23e1) to head (4911cff).
Report is 177 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #558      +/-   ##
============================================
+ Coverage     67.67%   67.89%   +0.22%     
- Complexity      200      203       +3     
============================================
  Files            36       36              
  Lines           863      869       +6     
  Branches         26       26              
============================================
+ Hits            584      590       +6     
  Misses          269      269              
  Partials         10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/main/java/org/opensearch/sdk/SDKClient.java Outdated Show resolved Hide resolved
src/test/java/org/opensearch/sdk/TestSDKClient.java Outdated Show resolved Hide resolved
src/main/java/org/opensearch/sdk/SDKClient.java Outdated Show resolved Hide resolved
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

LGTM for now. The whole initialize and close thing really could use an overhaul at some point.

@ryanbogan ryanbogan merged commit 8e0b1f6 into opensearch-project:main Mar 14, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 14, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
(cherry picked from commit 8e0b1f6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ryanbogan pushed a commit that referenced this pull request Mar 14, 2023
* Integrated Async Java Client



* Correct ordering of method



* Updated method name



---------


(cherry picked from commit 8e0b1f6)

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 15, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Nurym <nurym0807@gmail.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 16, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Nurym <nurym0807@gmail.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Kuanysh-kst pushed a commit to Kuanysh-kst/opensearch-sdk-java that referenced this pull request Mar 18, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Kuanysh <kuanysh4646@gmail.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 19, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Nurym <nurym0807@gmail.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 22, 2023
* Integrated Async Java Client

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Correct ordering of method

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Updated method name

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

---------

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Nurym <nurym0807@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Integrate Async Java Client [FEATURE] Create Async SDKClient
4 participants