public class DefaultWebServiceHandlerSelector extends Object implements WebServiceHandlerSelector
Modifier and Type | Field and Description |
---|---|
static com.codahale.metrics.Meter |
QUERY_REQUEST_TOTAL |
Constructor and Description |
---|
DefaultWebServiceHandlerSelector(DruidWebService webService,
DataRequestHandler webServiceNext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WebServiceHandler |
select(DruidAggregationQuery<?> druidQuery,
DataApiRequest request,
RequestContext context)
Select which web service to use, based on the request information.
|
public DefaultWebServiceHandlerSelector(DruidWebService webService, DataRequestHandler webServiceNext)
webService
- UI Web ServicewebServiceNext
- Handler for the UI pathpublic WebServiceHandler select(DruidAggregationQuery<?> druidQuery, DataApiRequest request, RequestContext context)
WebServiceHandlerSelector
select
in interface WebServiceHandlerSelector
druidQuery
- Druid query we intend to send to the chosen WebServicerequest
- API Requestcontext
- Context for the requestCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.