You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/java-jobs/_index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,5 @@ type: docs
3
3
title: "Jobs"
4
4
linkTitle: "Jobs"
5
5
weight: 3000
6
-
description: With the Dapr Job package, you can interact with the Dapr Job APIs from a Java application to trigger future operations to run according to a predefined schedule with an optional payload. To get started, walk through the [Dapr Jobs]({{< ref java-jobs-howto.md >}}) how-to guide.
6
+
description: With the Dapr Jobs package, you can interact with the Dapr Jobs APIs from a Java application to trigger future operations to run according to a predefined schedule with an optional payload. To get started, walk through the [Dapr Jobs]({{< ref java-jobs-howto.md >}}) how-to guide.
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/java-jobs/java-jobs-howto.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ description: How to get up and running with Jobs using the Dapr Java SDK
7
7
---
8
8
9
9
As part of this demonstration we will schedule a Dapr Job. The scheduled job will trigger an endpoint registered in the
10
-
same app. With the [provided jobs example](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/jobs), you will:
10
+
same app. With the [provided jobs example](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/jobs), you will:
11
11
12
12
- Schedule a Job [Job scheduling example](https://github.com/dapr/java-sdk/blob/master/examples/src/main/java/io/dapr/examples/jobs/DemoJobsClient.java)
13
-
- Register an endpoint for the Jobs runtime to invoke as part of the schedule[Endpoint Registration](https://github.com/dapr/java-sdk/blob/master/examples/src/main/java/io/dapr/examples/jobs/DemoJobsSpringApplication.java)
13
+
- Register an endpoint for the dapr sidecar to invoke at trigger time[Endpoint Registration](https://github.com/dapr/java-sdk/blob/master/examples/src/main/java/io/dapr/examples/jobs/DemoJobsSpringApplication.java)
14
14
15
15
This example uses the default configuration from `dapr init` in [self-hosted mode](https://github.com/dapr/cli#install-dapr-on-your-local-machine-self-hosted).
16
16
@@ -25,43 +25,43 @@ This example uses the default configuration from `dapr init` in [self-hosted mod
25
25
26
26
## Set up the environment
27
27
28
-
Clone the [Java SDK repo](https://github.com/dapr/java-sdk)and navigate into it.
28
+
Clone the [Java SDK repo](https://github.com/dapr/java-sdk) and navigate into it.
29
29
30
30
```bash
31
31
git clone https://github.com/dapr/java-sdk.git
32
32
cd java-sdk
33
33
```
34
34
35
-
Run the following command to install the requirements for running this jobs sample with the Dapr Java SDK.
35
+
Run the following command to install the requirements for running the jobs example with the Dapr Java SDK.
36
36
37
37
```bash
38
38
mvn clean install -DskipTests
39
39
```
40
40
41
-
From the Java SDK root directory, navigate to the Dapr Workflow example.
41
+
From the Java SDK root directory, navigate to the Dapr Jobs example.
42
42
43
43
```bash
44
44
cd examples
45
45
```
46
46
47
-
We'll run a command that starts the Dapr sidecar.
47
+
Run the Dapr sidecar.
48
48
49
49
```sh
50
50
dapr run --app-id jobsapp --dapr-grpc-port 51439 --dapr-http-port 3500 --app-port 8080
51
51
```
52
52
53
53
> Now, Dapr is listening for HTTP requests at `http://localhost:3500` and internal Jobs gRPC requests at `http://localhost:51439`.
54
54
55
-
## Register a job and Get its details
55
+
## Schedule and Get a job
56
56
57
-
In the `DemoJobsClient` there are steps to Register a Job. Calling the `scheduleJob`on the `DaprPreviewClient`
57
+
In the `DemoJobsClient` there are steps to schedule a job. Calling `scheduleJob`using the `DaprPreviewClient`
58
58
will schedule a job with the Dapr Runtime.
59
59
60
60
```java
61
61
publicclassDemoJobsClient {
62
62
63
63
/**
64
-
* The main method of this app to register and fetch jobs.
64
+
* The main method of this app to schedule and get jobs.
0 commit comments