Package org.apache.druid.discovery
Class BrokerClient
- java.lang.Object
-
- org.apache.druid.discovery.BrokerClient
-
public class BrokerClient extends Object
This class facilitates interaction with Broker.
-
-
Constructor Summary
Constructors Constructor Description BrokerClient(org.apache.druid.java.util.http.client.HttpClient brokerHttpClient, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.druid.java.util.http.client.RequestmakeRequest(org.jboss.netty.handler.codec.http.HttpMethod httpMethod, String urlPath)Creates and returns aRequestafter choosing a broker.StringsendQuery(org.apache.druid.java.util.http.client.Request request)
-
-
-
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 IOExceptionCreates and returns aRequestafter choosing a broker.- Throws:
IOException
-
-