Class CoordinatorSegmentResource

java.lang.Object
io.trino.server.protocol.spooling.CoordinatorSegmentResource

@Path("/v1/spooled") @ResourceSecurity(PUBLIC) public class CoordinatorSegmentResource extends Object
  • Constructor Details

    • CoordinatorSegmentResource

      @Inject public CoordinatorSegmentResource(io.trino.spi.protocol.SpoolingManager spoolingManager, SpoolingConfig config, InternalNodeManager nodeManager)
  • Method Details

    • download

      @GET @Path("/download/{identifier}") @Produces("application/octet-stream") @ResourceSecurity(PUBLIC) public jakarta.ws.rs.core.Response download(@Context jakarta.ws.rs.core.UriInfo uriInfo, @PathParam("identifier") String identifier, @Context jakarta.ws.rs.core.HttpHeaders headers) throws IOException
      Throws:
      IOException
    • acknowledge

      @GET @Path("/ack/{identifier}") @ResourceSecurity(PUBLIC) public jakarta.ws.rs.core.Response acknowledge(@PathParam("identifier") String identifier, @Context jakarta.ws.rs.core.HttpHeaders headers) throws IOException
      Throws:
      IOException
    • spooledSegmentUriBuilder

      public static jakarta.ws.rs.core.UriBuilder spooledSegmentUriBuilder(ExternalUriInfo info)
    • randomActiveWorkerNode

      public HostAddress randomActiveWorkerNode()