public class QueryResource extends Object implements QueryCountStatsProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
QueryResource.ResourceIOReaderWriter |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
APPLICATION_SMILE
Deprecated.
|
protected AuthConfig |
authConfig |
protected AuthorizerMapper |
authorizerMapper |
static String |
HEADER_ETAG |
static String |
HEADER_IF_NONE_MATCH |
static String |
HEADER_RESPONSE_CONTEXT
HTTP response header name containing
ResponseContext serialized string |
protected com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper |
protected static EmittingLogger |
log |
protected QueryLifecycleFactory |
queryLifecycleFactory |
protected QueryScheduler |
queryScheduler |
protected com.fasterxml.jackson.databind.ObjectMapper |
serializeDateTimeAsLongJsonMapper |
protected com.fasterxml.jackson.databind.ObjectMapper |
serializeDateTimeAsLongSmileMapper |
protected com.fasterxml.jackson.databind.ObjectMapper |
smileMapper |
| Constructor and Description |
|---|
QueryResource(QueryLifecycleFactory queryLifecycleFactory,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
QueryScheduler queryScheduler,
AuthConfig authConfig,
AuthorizerMapper authorizerMapper,
ResponseContextConfig responseContextConfig,
DruidNode selfNode) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancelQuery(String queryId,
javax.servlet.http.HttpServletRequest req) |
protected QueryResource.ResourceIOReaderWriter |
createResourceIOReaderWriter(String requestType,
boolean pretty) |
javax.ws.rs.core.Response |
doPost(InputStream in,
String pretty,
javax.servlet.http.HttpServletRequest req) |
long |
getFailedQueryCount() |
long |
getInterruptedQueryCount() |
long |
getSuccessfulQueryCount() |
protected com.fasterxml.jackson.databind.ObjectMapper |
serializeDataTimeAsLong(com.fasterxml.jackson.databind.ObjectMapper mapper) |
protected static final EmittingLogger log
@Deprecated protected static final String APPLICATION_SMILE
public static final String HEADER_RESPONSE_CONTEXT
ResponseContext serialized stringpublic static final String HEADER_IF_NONE_MATCH
public static final String HEADER_ETAG
protected final QueryLifecycleFactory queryLifecycleFactory
protected final com.fasterxml.jackson.databind.ObjectMapper jsonMapper
protected final com.fasterxml.jackson.databind.ObjectMapper smileMapper
protected final com.fasterxml.jackson.databind.ObjectMapper serializeDateTimeAsLongJsonMapper
protected final com.fasterxml.jackson.databind.ObjectMapper serializeDateTimeAsLongSmileMapper
protected final QueryScheduler queryScheduler
protected final AuthConfig authConfig
protected final AuthorizerMapper authorizerMapper
@Inject public QueryResource(QueryLifecycleFactory queryLifecycleFactory, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper, QueryScheduler queryScheduler, AuthConfig authConfig, AuthorizerMapper authorizerMapper, ResponseContextConfig responseContextConfig, DruidNode selfNode)
public javax.ws.rs.core.Response cancelQuery(String queryId, @Context javax.servlet.http.HttpServletRequest req)
public javax.ws.rs.core.Response doPost(InputStream in, String pretty, @Context javax.servlet.http.HttpServletRequest req) throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.ObjectMapper serializeDataTimeAsLong(com.fasterxml.jackson.databind.ObjectMapper mapper)
protected QueryResource.ResourceIOReaderWriter createResourceIOReaderWriter(String requestType, boolean pretty)
public long getSuccessfulQueryCount()
getSuccessfulQueryCount in interface QueryCountStatsProviderpublic long getFailedQueryCount()
getFailedQueryCount in interface QueryCountStatsProviderpublic long getInterruptedQueryCount()
getInterruptedQueryCount in interface QueryCountStatsProviderCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.