File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
src/main/java/io/elastic/petstore Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ repositories {
31
31
}
32
32
33
33
dependencies {
34
- compile " io.elastic:sailor-jvm:2 .1.3-SNAPSHOT "
34
+ compile " io.elastic:sailor-jvm:3 .1.0 "
35
35
compile " org.glassfish.jersey.core:jersey-client:2.25.1"
36
36
compile " org.glassfish.jersey.media:jersey-media-json-processing:2.25.1"
37
37
}
Original file line number Diff line number Diff line change 1
1
package io .elastic .petstore .actions ;
2
2
3
3
import io .elastic .api .ExecutionParameters ;
4
+ import io .elastic .api .Function ;
4
5
import io .elastic .api .Message ;
5
- import io .elastic .api .Module ;
6
6
import io .elastic .petstore .HttpClientUtils ;
7
7
import org .slf4j .Logger ;
8
8
import org .slf4j .LoggerFactory ;
13
13
/**
14
14
* Action to create a pet.
15
15
*/
16
- public class CreatePet implements Module {
16
+ public class CreatePet implements Function {
17
17
private static final Logger logger = LoggerFactory .getLogger (CreatePet .class );
18
18
19
19
/**
Original file line number Diff line number Diff line change 1
1
package io .elastic .petstore .triggers ;
2
2
3
3
import io .elastic .api .ExecutionParameters ;
4
+ import io .elastic .api .Function ;
4
5
import io .elastic .api .Message ;
5
- import io .elastic .api .Module ;
6
6
import io .elastic .petstore .HttpClientUtils ;
7
7
import org .slf4j .Logger ;
8
8
import org .slf4j .LoggerFactory ;
12
12
import javax .json .JsonObject ;
13
13
import javax .json .JsonString ;
14
14
15
+
15
16
/**
16
17
* Trigger to get pets by status.
17
18
*/
18
- public class GetPetsByStatus implements Module {
19
+ public class GetPetsByStatus implements Function {
19
20
private static final Logger logger = LoggerFactory .getLogger (GetPetsByStatus .class );
20
21
21
22
/**
Original file line number Diff line number Diff line change 1
1
package io .elastic .petstore .triggers ;
2
2
3
3
import io .elastic .api .ExecutionParameters ;
4
+ import io .elastic .api .Function ;
4
5
import io .elastic .api .Message ;
5
- import io .elastic .api .Module ;
6
6
import io .elastic .petstore .Constants ;
7
7
import org .slf4j .Logger ;
8
8
import org .slf4j .LoggerFactory ;
17
17
/**
18
18
* Trigger to get pets by status.
19
19
*/
20
- public class GetPetsByStatusJaxRs implements Module {
20
+ public class GetPetsByStatusJaxRs implements Function {
21
21
private static final Logger logger = LoggerFactory .getLogger (GetPetsByStatusJaxRs .class );
22
22
23
23
/**
You can’t perform that action at this time.
0 commit comments