Class BrokerClient


  • public class BrokerClient
    extends Object
    This class facilitates interaction with Broker.
    • Constructor Detail

      • BrokerClient

        @Inject
        public BrokerClient​(org.apache.druid.java.util.http.client.HttpClient brokerHttpClient,
                            DruidNodeDiscoveryProvider druidNodeDiscoveryProvider)
    • Method Detail

      • makeRequest

        public org.apache.druid.java.util.http.client.Request makeRequest​(org.jboss.netty.handler.codec.http.HttpMethod httpMethod,
                                                                          String urlPath)
                                                                   throws IOException
        Creates and returns a Request after choosing a broker.
        Throws:
        IOException
      • sendQuery

        public String sendQuery​(org.apache.druid.java.util.http.client.Request request)
                         throws Exception
        Throws:
        Exception