Class AggregatorEndpoint

java.lang.Object
org.aktin.broker.rest.AggregatorEndpoint

@Path("/aggregator/")
public class AggregatorEndpoint
extends Object
  • Field Details

  • Constructor Details

    • AggregatorEndpoint

      public AggregatorEndpoint()
  • Method Details

    • submitResult

      @PUT @Path("my/request/{id}/result") public void submitResult​(@PathParam("id") String requestId, @HeaderParam("Content-type") javax.ws.rs.core.MediaType type, @Context javax.ws.rs.core.SecurityContext sec, InputStream content) throws URISyntaxException
      Throws:
      URISyntaxException
    • listResultsForRequest

      @GET @Path("request/{id}/result") @Produces("application/xml") public ResultList listResultsForRequest​(@PathParam("id") String requestId)
    • createResultNodeDownload

      @POST @Produces("text/plain") @Path("request/{id}/result/{nodeId}/download") public String createResultNodeDownload​(@PathParam("id") int requestId, @PathParam("nodeId") int nodeId)
      Create a download id to download the result uploaded for the request id and node id.
      Parameters:
      requestId - request id of the desired result
      nodeId - node id of the desired result
      Returns:
      download id to be used with the download endpoint
    • getResultNodeDataStream

      @GET @Path("request/{id}/result/{nodeId}") public javax.ws.rs.core.Response getResultNodeDataStream​(@PathParam("id") int requestId, @PathParam("nodeId") int nodeId)
      Create a download id to download the result uploaded for the request id and node id.
      Parameters:
      requestId - request id of the desired result
      nodeId - node id of the desired result
      Returns:
      download id to be used with the download endpoint