public class ConfigurableInternodeAuthHadoopPlugin extends HadoopAuthPlugin implements HttpClientBuilderPlugin
SolrInfoBean.Category, SolrInfoBean.GroupcoreContainer, PROXY_USER_CONFIGSAUTHENTICATION_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, getInitFilterConfigauthenticate, closeRequest, getCategory, getDescription, getMetricNames, getName, getSolrMetricsContext, initializeMetrics, interceptInternodeRequest, interceptInternodeRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNamegetUniqueMetricTag, initializeMetricspublic ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugininit in class HadoopAuthPluginpluginConfig - Config parameters, possibly from a ZK sourcepublic void setup(Http2SolrClient client)
setup in interface HttpClientBuilderPluginpublic SolrHttpClientBuilder getHttpClientBuilder(SolrHttpClientBuilder builder)
getHttpClientBuilder in interface HttpClientBuilderPluginpublic void close()
throws IOException
SolrMetricProducerSolrMetricProducer.super.close() to ensure that
metrics with the same life-cycle as this component are properly unregistered. This prevents
obscure memory leaks.
from: https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html
While this interface method is declared to throw Exception, implementers are strongly encouraged
to declare concrete implementations of the close method to throw more specific exceptions, or to
throw no exception at all if the close operation cannot fail.close in interface AutoCloseableclose in interface SolrMetricProducerclose in class HadoopAuthPluginIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.