Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ jobs:
GOARCH: amd64
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.17.0-rc.2
DAPR_RUNTIME_VER: 1.17.0-rc.10
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.17.0-rc.2/install/install.sh
DAPR_CLI_VER: 1.17.0
DAPR_RUNTIME_VER: 1.17.0
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.17.0/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
GOARCH: amd64
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.17.0-rc.2
DAPR_RUNTIME_VER: 1.17.0-rc.10
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.17.0-rc.2/install/install.sh
DAPR_CLI_VER: 1.17.0
DAPR_RUNTIME_VER: 1.17.0
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.17.0/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
steps:
Expand Down
38 changes: 19 additions & 19 deletions examples/src/main/java/io/dapr/examples/actors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,49 +260,49 @@ dapr run --resources-path ./components/actors --app-id demoactorclient -- java -
Once running, the `demoactorservice` logs will start displaying the different steps:
First, we can see actors being activated and the `say` method being invoked:
```text
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-5] INFO io.dapr.actors.ActorTrace - Actor:a855706e-f477-4530-9bff-d7b1cd2988f8 Activating ...
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-5] INFO io.dapr.actors.ActorTrace - Actor:a855706e-f477-4530-9bff-d7b1cd2988f8 Activating ...
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-6] INFO io.dapr.actors.ActorTrace - Actor:4720f646-baaa-4fae-86dd-aec2fc2ead6e Activating ...
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-6] INFO io.dapr.actors.ActorTrace - Actor:4720f646-baaa-4fae-86dd-aec2fc2ead6e Activating ...
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-7] INFO io.dapr.actors.ActorTrace - Actor:d54592a5-5b5b-4925-8974-6cf309fbdbbf Activating ...
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-7] INFO io.dapr.actors.ActorTrace - Actor:d54592a5-5b5b-4925-8974-6cf309fbdbbf Activating ...
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-5] INFO io.dapr.actors.ActorTrace - Actor:a855706e-f477-4530-9bff-d7b1cd2988f8 Activated
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-5] INFO io.dapr.actors.ActorTrace - Actor:a855706e-f477-4530-9bff-d7b1cd2988f8 Activated
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-7] INFO io.dapr.actors.ActorTrace - Actor:d54592a5-5b5b-4925-8974-6cf309fbdbbf Activated
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-7] INFO io.dapr.actors.ActorTrace - Actor:d54592a5-5b5b-4925-8974-6cf309fbdbbf Activated
== APP == 2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-6] INFO io.dapr.actors.ActorTrace - Actor:4720f646-baaa-4fae-86dd-aec2fc2ead6e Activated
2023-05-23 11:04:47,348 {HH:mm:ss.SSS} [http-nio-3000-exec-6] INFO io.dapr.actors.ActorTrace - Actor:4720f646-baaa-4fae-86dd-aec2fc2ead6e Activated
== APP == Server say method for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf: Message #2 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:48.459
Server say method for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf: Message #2 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:48.459
== APP == Server say method for actor 4720f646-baaa-4fae-86dd-aec2fc2ead6e: Message #4 received from actor at index 2 with ID 4720f646-baaa-4fae-86dd-aec2fc2ead6e @ 2023-05-23 11:04:48.695
Server say method for actor 4720f646-baaa-4fae-86dd-aec2fc2ead6e: Message #4 received from actor at index 2 with ID 4720f646-baaa-4fae-86dd-aec2fc2ead6e @ 2023-05-23 11:04:48.695
== APP == Server say method for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf: Message #3 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:48.708
Server say method for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf: Message #3 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:48.708
```

Then we can see reminders and timers in action:
```text
== APP == Server timer triggered with state ping! {0} for actor a855706e-f477-4530-9bff-d7b1cd2988f8@ 2023-05-23 11:04:49.021
Server timer triggered with state ping! {0} for actor a855706e-f477-4530-9bff-d7b1cd2988f8@ 2023-05-23 11:04:49.021
== APP == Server timer triggered with state ping! {1} for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf@ 2023-05-23 11:04:49.021
Server timer triggered with state ping! {1} for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf@ 2023-05-23 11:04:49.021
== APP == Reminder myremind with state {2} triggered for actor 4720f646-baaa-4fae-86dd-aec2fc2ead6e @ 2023-05-23 11:04:52.012
Reminder myremind with state {2} triggered for actor 4720f646-baaa-4fae-86dd-aec2fc2ead6e @ 2023-05-23 11:04:52.012
== APP == Reminder myremind with state {1} triggered for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:52.012
Reminder myremind with state {1} triggered for actor d54592a5-5b5b-4925-8974-6cf309fbdbbf @ 2023-05-23 11:04:52.012
== APP == Reminder myremind with state {0} triggered for actor a855706e-f477-4530-9bff-d7b1cd2988f8 @ 2023-05-23 11:04:52.012
Reminder myremind with state {0} triggered for actor a855706e-f477-4530-9bff-d7b1cd2988f8 @ 2023-05-23 11:04:52.012
```

Finally, the console for `demoactorclient` got the service responses:
```text
== APP == Reply 2023-05-23 11:04:49.288 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
Reply 2023-05-23 11:04:49.288 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
== APP == Reply 2023-05-23 11:04:49.408 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
Reply 2023-05-23 11:04:49.408 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
== APP == Reply 2023-05-23 11:04:49.515 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf
Reply 2023-05-23 11:04:49.515 received from actor at index 1 with ID d54592a5-5b5b-4925-8974-6cf309fbdbbf
== APP == Reply 2023-05-23 11:04:49.740 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
Reply 2023-05-23 11:04:49.740 received from actor at index 0 with ID a855706e-f477-4530-9bff-d7b1cd2988f8
== APP == Reply 2023-05-23 11:04:49.863 received from actor at index 2 with ID 4720f646-baaa-4fae-86dd-aec2fc2ead6e
Reply 2023-05-23 11:04:49.863 received from actor at index 2 with ID 4720f646-baaa-4fae-86dd-aec2fc2ead6e
```

For more details on Dapr SpringBoot integration, please refer to [Dapr Spring Boot](https://github.com/dapr/java-sdk/blob/master/sdk-tests/src/test/java/io/dapr/it/actors/services/springboot/DaprApplication.java) Application implementation.
Expand Down
32 changes: 16 additions & 16 deletions examples/src/main/java/io/dapr/examples/bindings/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ Execute the following command to run the Input Binding example:
<!-- STEP
name: Run input binding
expected_stdout_lines:
- '== APP == Received message through binding: {"message":"Message #0"}'
- '== APP == Received message through binding: "Message #1"'
- '== APP == Received message through binding: {"message":"Message #2"}'
- '== APP == Received message through binding: "Message #3"'
- 'Received message through binding: {"message":"Message #0"}'
- 'Received message through binding: "Message #1"'
- 'Received message through binding: {"message":"Message #2"}'
- 'Received message through binding: "Message #3"'
background: true
sleep: 10
-->
Expand Down Expand Up @@ -200,10 +200,10 @@ Execute the following command to run the Output Binding example:
<!-- STEP
name: Run output binding
expected_stdout_lines:
- '== APP == sending a class with message: Message #0'
- '== APP == sending a plain string: Message #1'
- '== APP == sending a class with message: Message #2'
- '== APP == sending a plain string: Message #3'
- 'sending a class with message: Message #0'
- 'sending a plain string: Message #1'
- 'sending a class with message: Message #2'
- 'sending a plain string: Message #3'
background: true
sleep: 30
-->
Expand All @@ -217,27 +217,27 @@ dapr run --resources-path ./components/bindings --app-id outputbinding -- java -
Once running, the OutputBindingExample should print the output as follows:

```txt
== APP == sending a class with message: Message #0
sending a class with message: Message #0
== APP == sending a plain string: Message #1
sending a plain string: Message #1
== APP == sending a class with message: Message #2
sending a class with message: Message #2
== APP == sending a plain string: Message #3
sending a plain string: Message #3
```

Events have been sent.

Once running, the InputBindingExample should print the output as follows:

```txt
== APP == Received message through binding: {"message":"Message #0"}
Received message through binding: {"message":"Message #0"}
== APP == Received message through binding: "Message #1"
Received message through binding: "Message #1"
== APP == Received message through binding: {"message":"Message #2"}
Received message through binding: {"message":"Message #2"}
== APP == Received message through binding: "Message #3"
Received message through binding: "Message #3"
```

Events have been retrieved from the binding.
Expand Down
32 changes: 16 additions & 16 deletions examples/src/main/java/io/dapr/examples/configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ Use the following command to run this example-
<!-- STEP
name: Run ConfigurationClient example
expected_stdout_lines:
- "== APP == Using Dapr client..."
- "== APP == *******trying to retrieve configurations for a list of keys********"
- "== APP == val1 : key ->myconfig1"
- "== APP == val2 : key ->myconfig2"
- "== APP == val3 : key ->myconfig3"
- "== APP == Subscribing to key: myconfig1"
- "== APP == subscription ID :"
- "== APP == subscribing to key myconfig1 is successful"
- "Using Dapr client..."
- "*******trying to retrieve configurations for a list of keys********"
- "val1 : key ->myconfig1"
- "val2 : key ->myconfig2"
- "val3 : key ->myconfig3"
- "Subscribing to key: myconfig1"
- "subscription ID :"
- "subscribing to key myconfig1 is successful"
background: true
output_match_mode: substring
sleep: 10
Expand All @@ -165,14 +165,14 @@ dapr run --resources-path ./components/configuration --app-id configgrpc --log-l

### Sample output
```
== APP == Using Dapr client...
== APP == *******trying to retrieve configurations for a list of keys********
== APP == val1 : key ->myconfig1
== APP == val2 : key ->myconfig2
== APP == val3 : key ->myconfig3
== APP == Subscribing to key: myconfig1
== APP == subscription ID : 82bb8e24-f69d-477a-9126-5ffaf995f498
== APP == subscribing to key myconfig1 is successful
Using Dapr client...
*******trying to retrieve configurations for a list of keys********
val1 : key ->myconfig1
val2 : key ->myconfig2
val3 : key ->myconfig3
Subscribing to key: myconfig1
subscription ID : 82bb8e24-f69d-477a-9126-5ffaf995f498
subscribing to key myconfig1 is successful
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Use the following command to run this example-
<!-- STEP
name: Run Demo Conversation Client example
expected_stdout_lines:
- "== APP == Conversation output: Hello How are you? This is the my number <ISBN>"
- "Conversation output: Hello How are you? This is the my number <ISBN>"
background: true
output_match_mode: substring
sleep: 10
Expand All @@ -116,7 +116,7 @@ dapr run --resources-path ./components/conversation --app-id myapp --app-port 80

### Sample output
```
== APP == Conversation output: Hello How are you? This is the my number <ISBN>
Conversation output: Hello How are you? This is the my number <ISBN>
```
### Cleanup

Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/java/io/dapr/examples/crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mkdir -p ./components/crypto/keys && openssl genrsa -out ./components/crypto/key
<!-- STEP
name: Run Crypto Example
expected_stdout_lines:
- "== APP == SUCCESS: The decrypted message matches the original."
- "SUCCESS: The decrypted message matches the original."
background: true
output_match_mode: substring
sleep: 30
Expand Down
16 changes: 8 additions & 8 deletions examples/src/main/java/io/dapr/examples/exception/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public class Client {
<!-- STEP
name: Run exception example
expected_stdout_lines:
- '== APP == Error code: INVALID_ARGUMENT'
- '== APP == Error message: INVALID_ARGUMENT: pubsub unknown_pubsub is not found'
- '== APP == Reason: DAPR_PUBSUB_NOT_FOUND'
- '== APP == Error payload size: 116'
- 'Error code: INVALID_ARGUMENT'
- 'Error message: INVALID_ARGUMENT: pubsub unknown_pubsub is not found'
- 'Reason: DAPR_PUBSUB_NOT_FOUND'
- 'Error payload size: 116'
background: true
sleep: 5
-->
Expand All @@ -81,13 +81,13 @@ dapr run --app-id exception-example -- java -jar target/dapr-java-sdk-examples-e
Once running, the State Client Example should print the output as follows:

```txt
== APP == Error code: ERR_PUBSUB_NOT_FOUND
Error code: ERR_PUBSUB_NOT_FOUND
== APP == Error message: ERR_PUBSUB_NOT_FOUND: pubsub unknown_pubsub is not found
Error message: ERR_PUBSUB_NOT_FOUND: pubsub unknown_pubsub is not found
== APP == Reason: DAPR_PUBSUB_NOT_FOUND
Reason: DAPR_PUBSUB_NOT_FOUND
== APP == Error payload size: 116
Error payload size: 116
...
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Now run the service code:
<!-- STEP
name: Run demo service
expected_stdout_lines:
- '== APP == INFO: greet to World'
- 'INFO: greet to World'
background: true
sleep: 1
-->
Expand Down Expand Up @@ -124,8 +124,8 @@ Finally, open a new command line terminal and run the client code to send some m
<!-- STEP
name: Run demo client
expected_stdout_lines:
- '== APP == INFO: Will try to greet World ...'
- '== APP == INFO: Greeting: Hello World'
- 'INFO: Will try to greet World ...'
- 'INFO: Greeting: Hello World'
background: true
sleep: 10
-->
Expand Down
16 changes: 8 additions & 8 deletions examples/src/main/java/io/dapr/examples/invoke/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Use the following command to execute the demo service example:
<!-- STEP
name: Run demo service
expected_stdout_lines:
- '== APP == Server: "message one"'
- '== APP == Server: "message two"'
- 'Server: "message one"'
- 'Server: "message two"'
background: true
sleep: 5
-->
Expand Down Expand Up @@ -152,9 +152,9 @@ Execute the follow script in order to run the InvokeClient example, passing two
<!-- STEP
name: Run demo client
expected_stdout_lines:
- '== APP == "message one" received'
- '== APP == "message two" received'
- '== APP == Done'
- '"message one" received'
- '"message two" received'
- 'Done'
background: true
sleep: 5
-->
Expand All @@ -168,11 +168,11 @@ dapr run --app-id invokeclient -- java -jar target/dapr-java-sdk-examples-exec.j
Finally, the console for `invokeclient` should output:

```text
== APP == "message one" received
"message one" received
== APP == "message two" received
"message two" received
== APP == Done
Done
```

Expand Down
8 changes: 4 additions & 4 deletions examples/src/main/java/io/dapr/examples/jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Use the following command to run this example-
<!-- STEP
name: Run Demo Jobs Client example
expected_stdout_lines:
- "== APP == Job Name: dapr-job-1"
- "== APP == Job Payload: Hello World!"
- "Job Name: dapr-job-1"
- "Job Payload: Hello World!"
background: true
output_match_mode: substring
sleep: 10
Expand All @@ -115,8 +115,8 @@ java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.jobs.DemoJobsC

### Sample output
```
== APP == Job Name: dapr-job-1
== APP == Job Payload: Hello World!
Job Name: dapr-job-1
Job Payload: Hello World!
```
### Cleanup

Expand Down
20 changes: 10 additions & 10 deletions examples/src/main/java/io/dapr/examples/lock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ Use the following command to run this example-
<!-- STEP
name: Run DistributedLockGrpcClient example
expected_stdout_lines:
- "== APP == Using preview client..."
- "== APP == *******trying to get a free distributed lock********"
- "== APP == Lock result -> SUCCESS"
- "== APP == *******unlock a distributed lock********"
- "== APP == Unlock result -> SUCCESS"
- "Using preview client..."
- "*******trying to get a free distributed lock********"
- "Lock result -> SUCCESS"
- "*******unlock a distributed lock********"
- "Unlock result -> SUCCESS"
background: true
sleep: 5
-->
Expand All @@ -65,11 +65,11 @@ dapr run --resources-path ./components/lock --app-id lockgrpc --log-level debug

### Sample output
```
== APP == Using preview client...
== APP == *******trying to get a free distributed lock********
== APP == Lock result -> SUCCESS
== APP == *******unlock a distributed lock********
== APP == Unlock result -> SUCCESS
Using preview client...
*******trying to get a free distributed lock********
Lock result -> SUCCESS
*******unlock a distributed lock********
Unlock result -> SUCCESS
```
### Cleanup

Expand Down
Loading
Loading