public class InstrumentedHttpClient extends org.apache.http.impl.client.DefaultHttpClient implements SolrMetricProducer
Modifier and Type | Field and Description |
---|---|
protected InstrumentedHttpRequestExecutor |
requestExecutor |
Constructor and Description |
---|
InstrumentedHttpClient(org.apache.http.conn.ClientConnectionManager conman,
HttpClientMetricNameStrategy metricNameStrategy) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.protocol.HttpRequestExecutor |
createRequestExecutor() |
void |
initializeMetrics(SolrMetricManager manager,
String registry,
String scope)
Initializes metrics specific to this producer
|
createHttpParams, createHttpProcessor, setDefaultHttpParams
addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, close, createAuthSchemeRegistry, createClientConnectionManager, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, doExecute, getAuthSchemes, getBackoffManager, getConnectionBackoffStrategy, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getProxyAuthenticationStrategy, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getTargetAuthenticationStrategy, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setBackoffManager, setConnectionBackoffStrategy, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setProxyAuthenticationStrategy, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setTargetAuthenticationStrategy, setUserTokenHandler
protected final InstrumentedHttpRequestExecutor requestExecutor
public InstrumentedHttpClient(org.apache.http.conn.ClientConnectionManager conman, HttpClientMetricNameStrategy metricNameStrategy)
protected org.apache.http.protocol.HttpRequestExecutor createRequestExecutor()
createRequestExecutor
in class org.apache.http.impl.client.AbstractHttpClient
public void initializeMetrics(SolrMetricManager manager, String registry, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
manager
- an instance of SolrMetricManager
registry
- registry name where metrics are registeredscope
- scope of the metrics (eg. handler name) to separate metrics of
instances of the same component executing in different contextsCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.