Interface OutputManager
- All Known Implementing Classes:
OutputManagerImpl
@Path("/output")
public interface OutputManager
The REST API for the output manager.
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetResultFile(int id, String filename, boolean download) Gets a results file.jakarta.ws.rs.core.ResponsegetResultFile(String projectId, int id, String filename, boolean download) Gets a results file.jakarta.ws.rs.core.ResponseuploadResultsToHPCServer(String projectId, int id, String serverUrl, String storageId, String filePath, String userId, String token) Upload a file to the HPC store.
-
Method Details
-
getResultFile
@GET @Path("{projectId}/{id}/{filename:.*}") @Produces("*") jakarta.ws.rs.core.Response getResultFile(@PathParam("projectId") String projectId, @PathParam("id") int id, @PathParam("filename") String filename, @QueryParam("download") @DefaultValue("true") boolean download) Gets a results file.- Parameters:
projectId- The id of the project which owns the file.id- The id of the job which produced the file.filename- The name of the file.download- Whether to mark the retrieval as a download to the browser.- Returns:
- A response containing the file, or a "NOT FOUND" response if the file does not exist.
-
getResultFile
@GET @Path("{id}/{filename:.*}") @Produces("*") jakarta.ws.rs.core.Response getResultFile(@PathParam("id") int id, @PathParam("filename") String filename, @QueryParam("download") @DefaultValue("true") boolean download) Gets a results file.- Parameters:
id- The id of the job which produced the file.filename- The name of the file.download- Whether to mark the retrieval as a download to the browser.- Returns:
- A response containing the file, or a "NOT FOUND" response if the file does not exist.
-
uploadResultsToHPCServer
@POST @Produces("text/plain") @Path("{projectId}/{id}/uploadToHPC") jakarta.ws.rs.core.Response uploadResultsToHPCServer(@PathParam("projectId") String projectId, @PathParam("id") int id, @QueryParam("url") String serverUrl, @QueryParam("storageId") String storageId, @QueryParam("filePath") String filePath, @QueryParam("userId") String userId, @QueryParam("token") String token) Upload a file to the HPC store.- Parameters:
projectId- The project IDid- The job IDserverUrl- The HPC storage servicestorageId- The ID for the storage on the HPC servicefilePath- The path within the storageuserId- The HPC user IDtoken- The auth token- Returns:
- Description of whether the upload was successful.
-