Пример #1
0
 @GET
 @Path("reload")
 public Response reload() throws Exception {
   service.reload(new HttpSource(request));
   return Response.status(Status.OK).build();
 }
Пример #2
0
 @GET
 @Path("start")
 public Response start() throws Exception {
   if (!service.isRunning()) service.start(new HttpSource(request));
   return Response.status(Status.OK).build();
 }
Пример #3
0
 @GET
 @Path("stop")
 public Response stop() {
   if (service.isRunning()) service.stop(new HttpSource(request));
   return Response.status(Status.OK).build();
 }
Пример #4
0
 @GET
 @Path("running")
 public String isRunning() {
   return String.valueOf(service.isRunning());
 }