@Path(value="/") public class QueuedStatementResource extends Object
| Constructor and Description |
|---|
QueuedStatementResource(DispatchManager dispatchManager,
DispatchExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancelQuery(QueryId queryId,
String slug,
long token) |
void |
getStatus(QueryId queryId,
String slug,
long token,
io.airlift.units.Duration maxWait,
String xForwardedProto,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.container.AsyncResponse asyncResponse) |
javax.ws.rs.core.Response |
postStatement(String statement,
String xForwardedProto,
javax.servlet.http.HttpServletRequest servletRequest,
javax.ws.rs.core.UriInfo uriInfo) |
void |
stop() |
@Inject public QueuedStatementResource(DispatchManager dispatchManager, DispatchExecutor executor)
@PreDestroy public void stop()
@POST @Path(value="/v1/statement") @Produces(value="application/json") public javax.ws.rs.core.Response postStatement(String statement, @HeaderParam(value="X-Forwarded-Proto") String xForwardedProto, @Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
@GET
@Path(value="/v1/statement/queued/{queryId}/{slug}/{token}")
@Produces(value="application/json")
public void getStatus(@PathParam(value="queryId")
QueryId queryId,
@PathParam(value="slug")
String slug,
@PathParam(value="token")
long token,
@QueryParam(value="maxWait")
io.airlift.units.Duration maxWait,
@HeaderParam(value="X-Forwarded-Proto")
String xForwardedProto,
@Context
javax.ws.rs.core.UriInfo uriInfo,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
Copyright © 2012–2019. All rights reserved.