Class RestSmartExecutor
java.lang.Object
org.gcube.vremanagement.executor.rest.RestSmartExecutor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Response.ResponseBuilderaddLocation(jakarta.ws.rs.core.Response.ResponseBuilder responseBuilder, String id) jakarta.ws.rs.core.ResponsegetLaunchState(String pluginName, String executionIdentifier, Integer iteration) getScheduled(String pluginName) jakarta.ws.rs.core.Responseprotected voidsetCalledMethod(String calledMethod)
-
Field Details
-
LOCATION_HEADER
- See Also:
-
PLUGIN_ENDPOINT_FORMAT
- See Also:
-
PLUGIN_ENDPOINT
- See Also:
-
uriInfo
@Context protected jakarta.ws.rs.core.UriInfo uriInfo
-
-
Constructor Details
-
RestSmartExecutor
public RestSmartExecutor()
-
-
Method Details
-
setCalledMethod
-
addLocation
protected jakarta.ws.rs.core.Response.ResponseBuilder addLocation(jakarta.ws.rs.core.Response.ResponseBuilder responseBuilder, String id) -
getAvailablePlugins
@GET @Produces("application/json") 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") 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"}) @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") 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 jakarta.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 jakarta.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
-