public class QueryResource extends Object implements QueryCountStatsProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
QueryResource.ResponseContext |
Modifier and Type | Field and Description |
---|---|
protected static String |
APPLICATION_SMILE
Deprecated.
|
protected AuthConfig |
authConfig |
protected ServerConfig |
config |
protected com.metamx.emitter.service.ServiceEmitter |
emitter |
static String |
HDR_ETAG |
static String |
HDR_IF_NONE_MATCH |
protected com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper |
protected static com.metamx.emitter.EmittingLogger |
log |
protected QueryManager |
queryManager |
protected RequestLogger |
requestLogger |
protected static int |
RESPONSE_CTX_HEADER_LEN_LIMIT |
protected com.fasterxml.jackson.databind.ObjectMapper |
smileMapper |
protected QuerySegmentWalker |
texasRanger |
protected QueryToolChestWarehouse |
warehouse |
Constructor and Description |
---|
QueryResource(QueryToolChestWarehouse warehouse,
ServerConfig config,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
QuerySegmentWalker texasRanger,
com.metamx.emitter.service.ServiceEmitter emitter,
RequestLogger requestLogger,
QueryManager queryManager,
AuthConfig authConfig) |
Modifier and Type | Method and Description |
---|---|
protected QueryResource.ResponseContext |
createContext(String requestType,
boolean pretty) |
javax.ws.rs.core.Response |
doPost(InputStream in,
String pretty,
javax.servlet.http.HttpServletRequest req) |
long |
getFailedQueryCount() |
long |
getInterruptedQueryCount() |
javax.ws.rs.core.Response |
getServer(String queryId,
javax.servlet.http.HttpServletRequest req) |
long |
getSuccessfulQueryCount() |
protected static final com.metamx.emitter.EmittingLogger log
@Deprecated protected static final String APPLICATION_SMILE
protected static final int RESPONSE_CTX_HEADER_LEN_LIMIT
public static final String HDR_IF_NONE_MATCH
public static final String HDR_ETAG
protected final QueryToolChestWarehouse warehouse
protected final ServerConfig config
protected final com.fasterxml.jackson.databind.ObjectMapper jsonMapper
protected final com.fasterxml.jackson.databind.ObjectMapper smileMapper
protected final QuerySegmentWalker texasRanger
protected final com.metamx.emitter.service.ServiceEmitter emitter
protected final RequestLogger requestLogger
protected final QueryManager queryManager
protected final AuthConfig authConfig
@Inject public QueryResource(QueryToolChestWarehouse warehouse, ServerConfig config, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper, QuerySegmentWalker texasRanger, com.metamx.emitter.service.ServiceEmitter emitter, RequestLogger requestLogger, QueryManager queryManager, AuthConfig authConfig)
public javax.ws.rs.core.Response getServer(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
IOException
protected QueryResource.ResponseContext createContext(String requestType, boolean pretty)
public long getSuccessfulQueryCount()
getSuccessfulQueryCount
in interface QueryCountStatsProvider
public long getFailedQueryCount()
getFailedQueryCount
in interface QueryCountStatsProvider
public long getInterruptedQueryCount()
getInterruptedQueryCount
in interface QueryCountStatsProvider
Copyright © 2011–2017. All rights reserved.