This repository was archived by the owner on Sep 28, 2022. It is now read-only.
Conversation
Cleanup SDK Java for V3
## What does this PR do ? This PR adds the Kuzzle and WebSocket class plus : - AbstractProtocol class (Used to create new protocols) - EventListener class (Used to handle events) - Task class (Used to create a new CompletableFuture to handle response of queries) - Response class (Used as a structure) - KuzzleOptions and WebSocketOptions class ### How should this be manually tested? Run `cd kuzzle-sdk-java && ./gradlew test`
## What does this PR do ? Move the `kuzzle-sdk-java` directory to /
What does this PR do ? Depends on #46 Add rules to generate and publish the .jar
## What does this PR do ? Add auth controller with unit tests and documentation. ### How should this be manually tested? ```sh ./gradlew test ``` ### Other changes - Added test snippet documentation - Reformat code with new prettier rules
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
…va into KZL-1350-document-search
## What does this PR do ? This PR implements the `collection:refresh` method with its unit tests. <!-- Uncomment this section to link PR on other SDKs https://github.com/kuzzleio/sdk-cpp/pull/ ⬅️ 🔵 --> ### How should this be manually tested? Clone this branch and run unit tests `./gradlew test` When it succeed, compile it `./gradlew jar` Initiate another java project by adding the compiled SDK as a dependency. Then, run Kuzzle, create an index `nyc-open-data`, a `yellow-taxi` collection Finally, run this code ```java import io.kuzzle.sdk.*; import io.kuzzle.sdk.Options.KuzzleOptions; import io.kuzzle.sdk.Options.Protocol.WebSocketOptions; import io.kuzzle.sdk.Protocol.WebSocket; import java.util.concurrent.ConcurrentHashMap; public class refreshCollection { private static Kuzzle kuzzle; public static void main(String[] args) { WebSocketOptions opts = new WebSocketOptions(); opts.setAutoReconnect(true).setConnectionTimeout(42000); try { WebSocket ws = new WebSocket("localhost", opts); kuzzle = new Kuzzle(ws, (KuzzleOptions) null); kuzzle.connect(); kuzzle.getCollectionController().refresh("nyc-open-data", "yellow-taxi").get(); } catch (Exception e) { e.printStackTrace(); } kuzzle.disconnect(); } }; ```
## What does this PR do ? This PR implements the `collection:list` method with its unit tests. <!-- Uncomment this section to link PR on other SDKs https://github.com/kuzzleio/sdk-cpp/pull/ ⬅️ 🔵 --> ### How should this be manually tested? Clone this branch and run unit tests `./gradlew test` When it succeed, compile it `./gradlew jar` Initiate another java project by adding the compiled SDK as a dependency. Then, run Kuzzle, create an index `nyc-open-data`, a `yellow-taxi` collection. Finally, run this code ```java import io.kuzzle.sdk.*; import io.kuzzle.sdk.Options.KuzzleOptions; import io.kuzzle.sdk.Options.Protocol.WebSocketOptions; import io.kuzzle.sdk.Protocol.WebSocket; import java.util.concurrent.ConcurrentHashMap; public class listCollection { private static Kuzzle kuzzle; public static void main(String[] args) { WebSocketOptions opts = new WebSocketOptions(); opts.setAutoReconnect(true).setConnectionTimeout(42000); try { WebSocket ws = new WebSocket("localhost", opts); kuzzle = new Kuzzle(ws, (KuzzleOptions) null); kuzzle.connect(); ConcurrentHashMap<String, Object> result = kuzzle.getCollectionController().list("nyc-open- data").get(); System.out.println(result); } catch (Exception e) { e.printStackTrace(); } kuzzle.disconnect(); } }; ```
Add document:search
…ications Add collection:searchSpecifications
Add Getting started documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3.0.0 (2020-05-11)
Bug fixes
New features
Others