Class RestSmartExecutor


  • @Path("plugins")
    public class RestSmartExecutor
    extends Object
    • Constructor Detail

      • RestSmartExecutor

        public RestSmartExecutor()
    • Method Detail

      • setCalledMethod

        protected void setCalledMethod​(String calledMethod)
      • addLocation

        protected javax.ws.rs.core.Response.ResponseBuilder addLocation​(javax.ws.rs.core.Response.ResponseBuilder responseBuilder,
                                                                        String id)
      • getAvailablePlugins

        @GET
        @Produces("application/json;charset=UTF-8")
        public String getAvailablePlugins()
                                   throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException
      • getScheduled

        @GET
        @Path("/{NAME}/executions")
        @Produces("application/json;charset=UTF-8")
        public String getScheduled​(@PathParam("NAME")
                                   String pluginName)
                            throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException
      • launch

        @POST
        @Path("/{NAME}/executions")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("text/plain")
        public String launch​(@PathParam("NAME")
                             String pluginName,
                             String launchParameterString)
                      throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException
      • getLaunchState

        @GET
        @Path("/{NAME}/executions/{UUID}")
        @Produces("application/json;charset=UTF-8")
        public String getLaunchState​(@PathParam("NAME")
                                     String pluginName,
                                     @PathParam("UUID")
                                     String executionIdentifier,
                                     @QueryParam("iteration")
                                     Integer iteration)
                              throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException
      • delete

        @DELETE
        @Path("/{NAME}/executions/{UUID}")
        public javax.ws.rs.core.Response delete​(@PathParam("NAME")
                                                String pluginName,
                                                @PathParam("UUID")
                                                String executionIdentifier,
                                                @QueryParam("unschedule")
                                                Boolean unschedule)
                                         throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException
      • purge

        @Path("/{NAME}/executions/{UUID}")
        public javax.ws.rs.core.Response purge​(@PathParam("NAME")
                                               String pluginName,
                                               @PathParam("UUID")
                                               String executionIdentifier)
                                        throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException