Class CoordinatorSegmentResource
java.lang.Object
io.trino.server.protocol.spooling.CoordinatorSegmentResource
@Path("/v1/spooled")
@ResourceSecurity(PUBLIC)
public class CoordinatorSegmentResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorSegmentResource(io.trino.spi.protocol.SpoolingManager spoolingManager, SpoolingConfig config, InternalNodeManager nodeManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responseacknowledge(String identifier, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.Responsedownload(jakarta.ws.rs.core.UriInfo uriInfo, String identifier, jakarta.ws.rs.core.HttpHeaders headers) static jakarta.ws.rs.core.UriBuilder
-
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
-
randomActiveWorkerNode
-