Class RestSmartExecutor
- java.lang.Object
-
- org.gcube.vremanagement.executor.rest.RestSmartExecutor
-
@Path("plugins") public class RestSmartExecutor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringLOCATION_HEADERstatic StringPLUGIN_ENDPOINTstatic StringPLUGIN_ENDPOINT_FORMATprotected javax.ws.rs.core.UriInfouriInfo
-
Constructor Summary
Constructors Constructor Description RestSmartExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.ResponseBuilderaddLocation(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String id)javax.ws.rs.core.Responsedelete(String pluginName, String executionIdentifier, Boolean unschedule)StringgetAvailablePlugins()StringgetLaunchState(String pluginName, String executionIdentifier, Integer iteration)StringgetScheduled(String pluginName)Stringlaunch(String pluginName, String launchParameterString)javax.ws.rs.core.Responsepurge(String pluginName, String executionIdentifier)protected voidsetCalledMethod(String calledMethod)
-
-
-
Field Detail
-
LOCATION_HEADER
protected static final String LOCATION_HEADER
- See Also:
- Constant Field Values
-
PLUGIN_ENDPOINT_FORMAT
public static final String PLUGIN_ENDPOINT_FORMAT
- See Also:
- Constant Field Values
-
PLUGIN_ENDPOINT
public static final String PLUGIN_ENDPOINT
- See Also:
- Constant Field Values
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo
-
-
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
-
-