1 /* Copyright (c) 2019 AT&T Intellectual Property. #
\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
7 # http://www.apache.org/licenses/LICENSE-2.0 #
\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
17 package org.oran.otf.service;
\r
19 import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
\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
32 public interface DeveloperService {
\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
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
46 @Consumes(APPLICATION_JSON)
\r
47 @Produces(APPLICATION_JSON)
\r
48 @Path("/dev/printThreads/v1")
\r
49 Response printThreads(@Context HttpServletRequest request);
\r
52 @Consumes(APPLICATION_JSON)
\r
53 @Produces(APPLICATION_JSON)
\r
54 @Path("/dev/jobExecutor/v1/activate")
\r
55 Response activateJobExecutor();
\r
58 @Consumes(APPLICATION_JSON)
\r
59 @Produces(APPLICATION_JSON)
\r
60 @Path("/dev/jobExecutor/v1/deactivate")
\r
61 Response deActivateJobExecutor();
\r
64 @Consumes(APPLICATION_JSON)
\r
65 @Produces(APPLICATION_JSON)
\r
66 @Path("/dev/gracefulshutdown/v1")
\r
67 Response gracefulShutdown();
\r
70 @Consumes(APPLICATION_JSON)
\r
71 @Produces(APPLICATION_JSON)
\r
72 @Path("/dev/disableGracefulShutdown/v1")
\r
73 Response disableGracefulShutdown();
\r
76 @Consumes(APPLICATION_JSON)
\r
77 @Produces(APPLICATION_JSON)
\r
78 @Path("/dev/enableGracefulShutdown/v1")
\r
79 Response enableGracefulShutdown();
\r