@Path(value="plugins") public class RestSmartExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
LOCATION_HEADER |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
RestSmartExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
addLocation(javax.ws.rs.core.Response.ResponseBuilder responseBuilder,
String id) |
javax.ws.rs.core.Response |
delete(String pluginName,
String executionIdentifier,
Boolean unschedule) |
String |
getAvailablePlugins() |
String |
getLaunchState(String pluginName,
String executionIdentifier,
Integer iteration) |
String |
getScheduled(String pluginName) |
String |
launch(String pluginName,
String launchParameterString) |
javax.ws.rs.core.Response |
purge(String pluginName,
String executionIdentifier) |
protected void |
setCalledMethod(String calledMethod) |
protected static final String LOCATION_HEADER
@Context protected javax.ws.rs.core.UriInfo uriInfo
protected void setCalledMethod(String calledMethod)
protected javax.ws.rs.core.Response.ResponseBuilder addLocation(javax.ws.rs.core.Response.ResponseBuilder responseBuilder,
String id)
@GET @Produces(value="application/json;charset=UTF-8") public String getAvailablePlugins() throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorException@GET
@Path(value="/{NAME}/executions")
@Produces(value="application/json;charset=UTF-8")
public String getScheduled(@PathParam(value="NAME")
String pluginName)
throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorException@POST
@Path(value="/{NAME}/executions")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="text/plain")
public String launch(@PathParam(value="NAME")
String pluginName,
String launchParameterString)
throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorException@GET
@Path(value="/{NAME}/executions/{UUID}")
@Produces(value="application/json;charset=UTF-8")
public String getLaunchState(@PathParam(value="NAME")
String pluginName,
@PathParam(value="UUID")
String executionIdentifier,
@QueryParam(value="iteration")
Integer iteration)
throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorException@DELETE
@Path(value="/{NAME}/executions/{UUID}")
public javax.ws.rs.core.Response delete(@PathParam(value="NAME")
String pluginName,
@PathParam(value="UUID")
String executionIdentifier,
@QueryParam(value="unschedule")
Boolean unschedule)
throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorException@Path(value="/{NAME}/executions/{UUID}")
public javax.ws.rs.core.Response purge(@PathParam(value="NAME")
String pluginName,
@PathParam(value="UUID")
String executionIdentifier)
throws org.gcube.vremanagement.executor.exception.ExecutorException
org.gcube.vremanagement.executor.exception.ExecutorExceptionCopyright © 2022. All Rights Reserved.