Class ModifiedLBHttp2SolrClient
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrClient
-
- org.apache.manifoldcf.agents.output.solr.ModifiedLBSolrClient
-
- org.apache.manifoldcf.agents.output.solr.ModifiedLBHttp2SolrClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Serializable
,java.lang.AutoCloseable
public class ModifiedLBHttp2SolrClient extends ModifiedLBSolrClient
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedLBSolrClient
ModifiedLBSolrClient.Req, ModifiedLBSolrClient.Rsp, ModifiedLBSolrClient.ServerIterator, ModifiedLBSolrClient.ServerWrapper
-
-
Field Summary
-
Fields inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedLBSolrClient
parser, queryParams, requestWriter, RETRY_CODES, zombieServers
-
-
Constructor Summary
Constructors Constructor Description ModifiedLBHttp2SolrClient(ModifiedHttp2SolrClient httpClient, java.lang.String... baseSolrUrls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQueryParams(java.lang.String queryOnlyParam)
org.apache.solr.client.solrj.util.Cancellable
asyncReq(ModifiedLBSolrClient.Req req, org.apache.solr.client.solrj.util.AsyncListener<ModifiedLBSolrClient.Rsp> asyncListener)
protected org.apache.solr.client.solrj.SolrClient
getClient(java.lang.String baseUrl)
void
setParser(org.apache.solr.client.solrj.ResponseParser parser)
Changes theResponseParser
that will be used for the internal SolrServer objects.void
setQueryParams(java.util.Set<java.lang.String> queryParams)
Expert Method.void
setRequestWriter(org.apache.solr.client.solrj.request.RequestWriter writer)
Changes theRequestWriter
that will be used for the internal SolrServer objects.-
Methods inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedLBSolrClient
addSolrServer, addZombie, close, createServerWrapper, doRequest, getParser, getQueryParams, getRequestWriter, normalize, pickServer, removeSolrServer, request, request, request, setAliveCheckInterval, updateAliveList
-
Methods inherited from class org.apache.solr.client.solrj.SolrClient
add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, getContext, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
-
-
-
-
Constructor Detail
-
ModifiedLBHttp2SolrClient
public ModifiedLBHttp2SolrClient(ModifiedHttp2SolrClient httpClient, java.lang.String... baseSolrUrls)
-
-
Method Detail
-
getClient
protected org.apache.solr.client.solrj.SolrClient getClient(java.lang.String baseUrl)
- Specified by:
getClient
in classModifiedLBSolrClient
-
setParser
public void setParser(org.apache.solr.client.solrj.ResponseParser parser)
Description copied from class:ModifiedLBSolrClient
Changes theResponseParser
that will be used for the internal SolrServer objects.- Overrides:
setParser
in classModifiedLBSolrClient
- Parameters:
parser
- Default Response Parser chosen to parse the response if the parser were not specified as part of the request.- See Also:
SolrRequest.getResponseParser()
-
setRequestWriter
public void setRequestWriter(org.apache.solr.client.solrj.request.RequestWriter writer)
Description copied from class:ModifiedLBSolrClient
Changes theRequestWriter
that will be used for the internal SolrServer objects.- Overrides:
setRequestWriter
in classModifiedLBSolrClient
- Parameters:
writer
- Default RequestWriter, used to encode requests sent to the server.
-
setQueryParams
public void setQueryParams(java.util.Set<java.lang.String> queryParams)
Description copied from class:ModifiedLBSolrClient
Expert Method.- Overrides:
setQueryParams
in classModifiedLBSolrClient
- Parameters:
queryParams
- set of param keys to only send via the query string
-
addQueryParams
public void addQueryParams(java.lang.String queryOnlyParam)
- Overrides:
addQueryParams
in classModifiedLBSolrClient
-
asyncReq
public org.apache.solr.client.solrj.util.Cancellable asyncReq(ModifiedLBSolrClient.Req req, org.apache.solr.client.solrj.util.AsyncListener<ModifiedLBSolrClient.Rsp> asyncListener)
-
-