public class WeightCheckResponseProcessor extends Object implements ResponseProcessor
| Constructor and Description |
|---|
WeightCheckResponseProcessor(ResponseProcessor next)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HttpErrorCallback |
getErrorCallback(DruidAggregationQuery<?> druidQuery)
Callback for handling http errors.
|
FailureCallback |
getFailureCallback(DruidAggregationQuery<?> druidQuery)
Callback handler for unexpected failures.
|
ResponseContext |
getResponseContext()
The response context allows state to be injected from construction and visible across response processor
layers as necessary.
|
void |
processResponse(com.fasterxml.jackson.databind.JsonNode json,
DruidAggregationQuery<?> druidQuery,
LoggingContext metadata)
Process the response json and respond to the original web request.
|
public WeightCheckResponseProcessor(ResponseProcessor next)
next - The next ResponseProcessor in the chain to callpublic ResponseContext getResponseContext()
ResponseProcessorgetResponseContext in interface ResponseProcessorpublic FailureCallback getFailureCallback(DruidAggregationQuery<?> druidQuery)
ResponseProcessorgetFailureCallback in interface ResponseProcessordruidQuery - The query associated with this failurepublic HttpErrorCallback getErrorCallback(DruidAggregationQuery<?> druidQuery)
ResponseProcessorgetErrorCallback in interface ResponseProcessordruidQuery - The query associated with this errorpublic void processResponse(com.fasterxml.jackson.databind.JsonNode json,
DruidAggregationQuery<?> druidQuery,
LoggingContext metadata)
ResponseProcessorprocessResponse in interface ResponseProcessorjson - The json representing a druid data responsedruidQuery - The query with the schema for processing this responsemetadata - The LoggingContext to useCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.