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 AuthorizerMapper |
authorizerMapper |
static String |
HEADER_ETAG |
static String |
HEADER_IF_NONE_MATCH |
protected com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper |
protected static EmittingLogger |
log |
protected QueryLifecycleFactory |
queryLifecycleFactory |
protected QueryManager |
queryManager |
protected static int |
RESPONSE_CTX_HEADER_LEN_LIMIT |
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,
QueryManager queryManager,
AuthConfig authConfig,
AuthorizerMapper authorizerMapper,
GenericQueryMetricsFactory queryMetricsFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
cancelQuery(String queryId,
javax.servlet.http.HttpServletRequest req) |
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() |
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
protected static final int RESPONSE_CTX_HEADER_LEN_LIMIT
public 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 QueryManager queryManager
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, QueryManager queryManager, AuthConfig authConfig, AuthorizerMapper authorizerMapper, GenericQueryMetricsFactory queryMetricsFactory)
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
IOException
protected com.fasterxml.jackson.databind.ObjectMapper serializeDataTimeAsLong(com.fasterxml.jackson.databind.ObjectMapper mapper)
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–2018. All rights reserved.