Commit Graph

121 Commits

Author SHA1 Message Date
Leon Mai d441f5441f
Request body must be null on get for okhttp, empty body does not work… (#70)
* Request body must be null on get for okhttp, empty body does not work.  Also, expose the ActorStateManager methods that ought to be exposed to user.

* Make ctor package private and use equals for string compare
2020-01-07 14:58:07 -08:00
Artur Souza 30b784cb86
Starting package to handle SpringBoot integration. (#69) 2020-01-07 14:22:30 -08:00
Juan Jose Herrera d4c467aec5 Add UnitTest to ActorProxyImpl and JaCoCo (coverage tool) implementation (#67)
* Change from unwrapMethodResponse to deserialize, because the response from an actor method is not wrapped in "Data" object
Add Unit test for the ActorProxy class

* #24 Implement more testing to the ActorProxyImpl and refactor how we manage the errors with Mono
#20 Add the coverage tool JaCoCo, the rules are commented at this moment in order to allow to execute the examples at this moment, if we enable the rules, the compilation fails.

* Enable rules for unit test coverage with a minimum of 0 in order to allow the developers to success compile, the minimum should be set to .8 before the projects ends

* Use the unwrapMethodResponse of the serilizer in order to deserilize actor responses.

* Reverting ActorProxyImpl.java

There is not need to change ActorProxyImpl since the previous change to not wrap it with the "data" structure was incorrect.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-06 10:28:53 -08:00
Artur Souza c571ac6ba6
Unit tests for ActorManager + fixes for Timer and Reminder. (#63) 2019-12-28 18:00:30 -08:00
Andres Robles 66e9098c13 Adding gRPC client adapter, to encapsulate gRPC logic from the user (#61)
* Adding a common adapter to be exposed to users, for calling either the gRPC or the HTTP Clients.
Implementing gRPC adapter based on interface.
Moving ActorStateSerializer and renamed to be used as a generic utility for Serializing objects

* Creating a builder for the GrpcClient
Abstracting generic serialize and deserialize methods into a generic base class while leaving Actor specific stuff into the ActorStateSerializer class
Adding Javadocs
2019-12-28 16:56:13 -08:00
mestizoLopez ee1af6cb1c Adding new methods for Http Client (#60)
* Adding new methods for Http Client

* Finishing implementation for HttpClient

* Adding JavaDoc and Changing return Type to new Methods

* Using ObjectSerializer and changing Constants values
2019-12-28 16:52:49 -08:00
Artur Souza 0ef261554a
ActorProxy + some refactoring (#62)
* ActorManager

* More work done.

* Adding example for actor runtime service.

* Implements ActorStateManager + fixes + javadocs.

* Fix OrderManager example in order to process http 201
Change the implement the calls to DAPR using the class AbstractDaprClient because before the change the class always return Mono.Empty
Implementation of the ActorAsyncProxy
Change the name of the Actor Dapr Http Async Client

* Update code with the changes proposed by Artur in the code review

* Changes to support ActorProxy + Fixes.

Co-authored-by: Juan Jose Herrera <35985447+JuanJose-Herrera@users.noreply.github.com>
2019-12-27 11:19:59 -08:00
Artur Souza 64bb4bfb3e
More Actors Stuff (#57)
* ActorManager

* More work done.

* Adding example for actor runtime service.

* Implements ActorStateManager + fixes + javadocs.
2019-12-26 18:08:01 -08:00
Leon Mai b229d462e9 Add ReminderInfo (#54)
* Add ReminderInfo

* remove extra var
2019-12-19 16:16:52 -08:00
ji11er 4bd9942b8c closed the response objects and returning a string (#56) 2019-12-19 14:47:25 -08:00
Artur Souza 9a10a960e8
Faster JSON building + separate auto-gen jar + tests. (#55) 2019-12-19 12:58:58 -08:00
Artur Souza 14f2304c8c ActorService + DaprStateProvider + some more. (#53) 2019-12-18 15:37:55 -08:00
Leon Mai 753ff87d03 Add ActorTimer and related (#51)
* Add ActorTimer and related

* cr
2019-12-17 13:22:30 -08:00
Artur Souza 6733fcdda8
More reformatting to 2 spaces indentation. (#50) 2019-12-16 16:14:17 -08:00
ji11er 78fec8f840 Improved async call to okhttp. Former solution just wrapped a blocking call, now we using asynch call and collect the results via callbacks. Mono's are created based on the result. This make more efficient use of the resources since nothing is blocking now. Reformatted according new checkstyle (#48) 2019-12-16 15:43:06 -08:00
Leon Mai 58365cda6a
Add ConverterUtils class (#49)
* Add ConverterUtils + unit test
2019-12-16 15:18:50 -08:00
Leon Mai 70f9f6e326
Add ActorMethodInfoMap (#47)
* Add ActorMethodInfoMap
2019-12-14 11:15:49 -08:00
Artur Souza 1ab0287817
Encapsulating async call in AbstractDaprClient as a single method. (#46) 2019-12-13 19:42:53 -08:00
Artur Souza ec5723b628
Merge pull request #45 from dapr/actorid3
Add ActorId
2019-12-13 17:15:30 -08:00
Artur Souza 43bf1fde7c
Merge pull request #40 from artursouza/doc_debug
Documentation on how to debug Java apps or SDK.
2019-12-13 17:12:31 -08:00
LM 334594bf18 Add ActorId 2019-12-13 15:44:50 -08:00
Leon Mai ed0728113e
Add ActorRuntime (#44)
* Add ActorRuntime

* split DaprAsyncClient hierarchy into 2 hierarchies for the different directions of communication

* Rename DaprClientBase to AbstractDaprClient
2019-12-13 12:27:46 -08:00
Leon Mai 821c21b3fe
Merge pull request #43 from artursouza/actors
Adding MethodContext + StateSerializer.
2019-12-11 19:10:41 -08:00
Artur Souza 4d60aa1394 Adding MethodContext + StateSerializer. 2019-12-11 19:03:39 -08:00
Artur Souza 020511ab77
Merge pull request #42 from artursouza/actors
Fixing license.
2019-12-11 17:43:56 -08:00
Artur Souza 553ebacda1 Fixing license. 2019-12-11 17:40:28 -08:00
Artur Souza 6584744b2f
Merge pull request #41 from artursouza/actors
ActorTypeInformation with parsing logic + some stubs.
2019-12-11 17:23:26 -08:00
Artur Souza 9dd68c8f71 ActorTypeInformation with parsing logic + some stubs. 2019-12-11 17:22:42 -08:00
Artur Souza 13b00439eb
Get pen for Win and MacOS + alt for VSCode 2019-12-11 15:50:21 -08:00
Artur Souza 4712988a44
Note on alternate order of commands to debug 2019-12-11 12:48:13 -08:00
Yaron Schneider 7512824d28
Merge branch 'master' into doc_debug 2019-12-11 11:19:20 -08:00
Artur Souza 937224e2f3
Merge pull request #39 from artursouza/actors
Basic Dapr HTTP Client for Actors.
2019-12-11 11:00:10 -08:00
Artur Souza 05eb058492 Documentation on how to debug Java apps or SDK. 2019-12-11 00:05:51 -08:00
Artur Souza 72388cce56 Basic Dapr HTTP Client for Actors. 2019-12-10 23:35:25 -08:00
Artur Souza ab5dcca641
Merge pull request #38 from dapr/readme1
link maven install webpage and clarify version
2019-12-10 11:05:04 -08:00
LM 1cdd49c92c link maven and clarify version 2019-12-10 09:14:39 -08:00
Artur Souza 900eacc5ce
Merge pull request #27 from artursouza/grpc_examples
New example for Dapr's Grpc invoke using Java.
2019-12-09 10:23:41 -08:00
Artur Souza e09debc228 New example for Dapr's Grpc invoke using Java.
Adds documentation for the other samples too.
2019-12-08 00:55:09 -08:00
Artur Souza 48556cbefd
Merge pull request #18 from artursouza/kick-off
Repackaging + fixing samples
2019-12-06 11:50:37 -08:00
Artur Souza 46cd8d997a
Fixing instructions in README.md 2019-12-06 11:48:34 -08:00
Artur Souza c3b7c41dfd
Remove . in description for pom.xml 2019-12-06 11:17:59 -08:00
Artur Souza f89a53e241
Fixing port on Example.java 2019-12-06 11:17:03 -08:00
Artur Souza b10a6fd039 Renames project to . Fixes examples. Adds proto files from release-0.3. 2019-12-05 18:30:13 -08:00
Bruno Borges 06116e223d fix readme 2019-11-30 02:12:12 -08:00
Bruno Borges 37fa7d9542 fix formatting javadoc 2019-11-30 02:04:58 -08:00
Bruno Borges 3d41d54c73 new example 2019-11-30 02:01:10 -08:00
Bruno Borges 77919c8663 Make the project modular 2019-11-30 00:07:02 -08:00
Bruno Borges 409936a30b Add dapr repo as a submodule to generate protobuffers classes 2019-11-29 23:29:10 -08:00
Shalabh Mohan Shrivastava a4645db031
Merge pull request #7 from dapr/pkg
Adding Central Repo requirements in pom file for the artifacts upload
2019-10-17 14:10:20 -07:00
Shalabh Mohan Shrivastava acdb27596a To ensure a level of quality of the components available in the Nexus Central
Repository , adding requirements in pom file for the artifacts

 - Noted that Signing artifacts will be offline manual process
2019-10-17 14:00:49 -07:00