added svcapi ui and camunda code
[it/otf.git] / otf-camunda / src / main / java / org / oran / otf / service / DeveloperService.java
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 #   you may not use this file except in compliance with the License.           #\r
5 #   You may obtain a copy of the License at                                    #\r
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\r
9 #   Unless required by applicable law or agreed to in writing, software        #\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 #   See the License for the specific language governing permissions and        #\r
13 #   limitations under the License.                                             #\r
14 ##############################################################################*/\r
15 \r
16 \r
17 package org.oran.otf.service;\r
18 \r
19 import static javax.ws.rs.core.MediaType.APPLICATION_JSON;\r
20 \r
21 import javax.servlet.http.HttpServletRequest;\r
22 import javax.ws.rs.Consumes;\r
23 import javax.ws.rs.GET;\r
24 import javax.ws.rs.POST;\r
25 import javax.ws.rs.Path;\r
26 import javax.ws.rs.PathParam;\r
27 import javax.ws.rs.Produces;\r
28 import javax.ws.rs.core.Context;\r
29 import javax.ws.rs.core.Response;\r
30 \r
31 @Path("/tcu")\r
32 public interface DeveloperService {\r
33   @POST\r
34   @Consumes(APPLICATION_JSON)\r
35   @Produces(APPLICATION_JSON)\r
36   @Path("/dev/workflowTaskCleanup/v1/{enabled}")\r
37   Response workflowTaskCleanup(@PathParam("enabled") String enabled);\r
38 \r
39   @POST\r
40   @Consumes(APPLICATION_JSON)\r
41   @Produces(APPLICATION_JSON)\r
42   @Path("/dev/externalTaskWorker/v1/{enabled}")\r
43   Response externalTaskWorker(@PathParam("enabled") String enabled);\r
44 \r
45   @GET\r
46   @Consumes(APPLICATION_JSON)\r
47   @Produces(APPLICATION_JSON)\r
48   @Path("/dev/printThreads/v1")\r
49   Response printThreads(@Context HttpServletRequest request);\r
50 \r
51   @POST\r
52   @Consumes(APPLICATION_JSON)\r
53   @Produces(APPLICATION_JSON)\r
54   @Path("/dev/jobExecutor/v1/activate")\r
55   Response activateJobExecutor();\r
56 \r
57   @POST\r
58   @Consumes(APPLICATION_JSON)\r
59   @Produces(APPLICATION_JSON)\r
60   @Path("/dev/jobExecutor/v1/deactivate")\r
61   Response deActivateJobExecutor();\r
62 \r
63   @POST\r
64   @Consumes(APPLICATION_JSON)\r
65   @Produces(APPLICATION_JSON)\r
66   @Path("/dev/gracefulshutdown/v1")\r
67   Response gracefulShutdown();\r
68 \r
69   @POST\r
70   @Consumes(APPLICATION_JSON)\r
71   @Produces(APPLICATION_JSON)\r
72   @Path("/dev/disableGracefulShutdown/v1")\r
73   Response disableGracefulShutdown();\r
74 \r
75   @POST\r
76   @Consumes(APPLICATION_JSON)\r
77   @Produces(APPLICATION_JSON)\r
78   @Path("/dev/enableGracefulShutdown/v1")\r
79   Response enableGracefulShutdown();\r
80 }\r