public class ConfigurableInternodeAuthHadoopPlugin extends HadoopAuthPlugin implements HttpClientBuilderPlugin
SolrInfoBean.Category, SolrInfoBean.Group
coreContainer, PROXY_USER_CONFIGS
AUTHENTICATION_PLUGIN_PROP, HTTP_HEADER_X_SOLR_AUTHDATA, numAuthenticated, numErrors, numMissingCredentials, numPassThrough, numWrongCredentials, requests, requestTimes, solrMetricsContext, totalTime
Constructor and Description |
---|
ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Implementations should always call
SolrMetricProducer.super.close() to ensure that
metrics with the same life-cycle as this component are properly unregistered. |
SolrHttpClientBuilder |
getHttpClientBuilder(SolrHttpClientBuilder builder) |
void |
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.
|
void |
setup(Http2SolrClient client) |
doAuthenticate, getInitFilterConfig
authenticate, closeRequest, getCategory, getDescription, getMetricNames, getName, getSolrMetricsContext, initializeMetrics, interceptInternodeRequest, interceptInternodeRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
getUniqueMetricTag, initializeMetrics
public ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugin
init
in class HadoopAuthPlugin
pluginConfig
- Config parameters, possibly from a ZK sourcepublic void setup(Http2SolrClient client)
setup
in interface HttpClientBuilderPlugin
public SolrHttpClientBuilder getHttpClientBuilder(SolrHttpClientBuilder builder)
getHttpClientBuilder
in interface HttpClientBuilderPlugin
public void close() throws IOException
SolrMetricProducer
SolrMetricProducer.super.close()
to ensure that
metrics with the same life-cycle as this component are properly unregistered. This prevents
obscure memory leaks.close
in interface AutoCloseable
close
in interface SolrMetricProducer
close
in class HadoopAuthPlugin
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.