@Path(value="/executions") public class ExecutionsResource extends Object
Constructor and Description |
---|
ExecutionsResource() |
Modifier and Type | Method and Description |
---|---|
void |
cancelExecution(String executionId,
String stepIds)
Cancel a execution
|
String |
checkHpcFile(String executionId,
String file) |
boolean |
createChartImage(File dataFilePath,
File imageFilePath) |
String |
createExecution(Submission submission)
Create execution via Submission JSON
|
void |
deleteExecution(String executionId)
Delete execution by id
|
Execution |
getExecution(String executionId)
Get a execution by Id
|
List<Execution> |
getExecutions(int size,
int page,
String email,
boolean showdeleted)
Get all executions
|
javax.ws.rs.core.Response |
getHpcFile(String executionId,
String file) |
List<LogFile> |
getLogfiles(String executionId)
Get all logfiles belonging to the execution
|
LogFile |
getLogfiles(String executionId,
String stepId)
Get the logfile belonging to a single step of the execution
|
Map<String,Execution.State> |
getState(String executionId)
Get the state all steps in an execution
|
Submission |
getSubmissionTemplate(String workflowId,
String email) |
protected SSHSession |
maybeGetSession(URI contact,
String user,
String userHome) |
void |
pauseExecution(String executionId)
Pause a execution
|
void |
startExecution(String executionId)
Start a execution
|
@POST @Consumes(value="application/json") @Produces(value="text/plain") public String createExecution(Submission submission)
submission
- a submission JSON object@GET @Path(value="{workflow-id}/template") @Produces(value="application/json") public Submission getSubmissionTemplate(@PathParam(value="workflow-id") String workflowId, @QueryParam(value="email")@DefaultValue(value="") String email)
@GET @Produces(value="application/json") public List<Execution> getExecutions(@QueryParam(value="size")@DefaultValue(value="-1") int size, @QueryParam(value="page")@DefaultValue(value="0") int page, @QueryParam(value="email")@DefaultValue(value="") String email, @QueryParam(value="showdeleted")@DefaultValue(value="false") boolean showdeleted)
size
- number of workflows per page (default: -1)page
- page number starting 0email
- email of creator@GET @Path(value="{execution-id}") @Produces(value="application/json") public Execution getExecution(@PathParam(value="execution-id") String executionId)
executionId
- execution id@DELETE @Path(value="{execution-id}") public void deleteExecution(@PathParam(value="execution-id")@DefaultValue(value="") String executionId) throws Exception
executionId
- execution idException
@GET @Path(value="{execution-id}/checkhpcfile") @Produces(value="text/plain") public String checkHpcFile(@PathParam(value="execution-id") String executionId, @QueryParam(value="file")@DefaultValue(value="error.rlt") String file)
@GET @Path(value="{execution-id}/hpcfile") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getHpcFile(@PathParam(value="execution-id") String executionId, @QueryParam(value="file")@DefaultValue(value="error.rlt") String file)
protected SSHSession maybeGetSession(URI contact, String user, String userHome) throws Exception
Exception
@GET @Path(value="{execution-id}/logfiles") @Produces(value="application/json") public List<LogFile> getLogfiles(@PathParam(value="execution-id") String executionId)
executionId
- a execution Id@GET @Path(value="{execution-id}/logfiles/{step-id}") @Produces(value="application/json") public LogFile getLogfiles(@PathParam(value="execution-id") String executionId, @PathParam(value="step-id") String stepId)
executionId
- a execution IdstepId
- a step Id@GET @Path(value="{execution-id}/state") @Produces(value="application/json") public Map<String,Execution.State> getState(@PathParam(value="execution-id") String executionId)
executionId
- execution id@PUT @Path(value="{execution-id}/start") public void startExecution(@PathParam(value="execution-id") String executionId)
executionId
- a execution id@PUT @Path(value="{execution-id}/pause") public void pauseExecution(@PathParam(value="execution-id") String executionId)
executionId
- Copyright © 2017. All rights reserved.