@Path(value="/tasks") public class TasksResource extends AbstractImporterResource
| Constructor and Description |
|---|
TasksResource() |
| Modifier and Type | Method and Description |
|---|---|
PreviewResource |
getPreview()
Return a sandbox
|
TaskResource |
getTask(String taskId)
Return the given task.
|
javax.ws.rs.core.Response |
listTasks(String scope,
String token,
String user,
Integer limit)
Return a list of tasks.
|
javax.ws.rs.core.Response |
schedule(org.gcube.dataanalysis.copernicus.cmems.importer.api.ImportOptions options)
Submit a new task.
|
void |
unschedule(String taskId)
Cancel the execution of the given task
|
check, checkSchedule, extractImportParameters@GET
@Produces(value="application/xml")
public javax.ws.rs.core.Response listTasks(@QueryParam(value="scope")
String scope,
@QueryParam(value="token")
String token,
@QueryParam(value="user")
String user,
@QueryParam(value="limit")
Integer limit)
@Path(value="{taskId}")
public TaskResource getTask(@PathParam(value="taskId")
String taskId)
taskId - @POST @Produces(value="application/xml") @Consumes(value="application/xml") public javax.ws.rs.core.Response schedule(org.gcube.dataanalysis.copernicus.cmems.importer.api.ImportOptions options)
options - @DELETE public void unschedule(String taskId)
options - @Path(value="preview") public PreviewResource getPreview()
Copyright © 2018. All Rights Reserved.