Package org.apache.solr.handler.admin
Class AdminHandlersProxy
- java.lang.Object
-
- org.apache.solr.handler.admin.AdminHandlersProxy
-
public class AdminHandlersProxy extends Object
Static methods to proxy calls to an Admin (GET) API to other nodes in the cluster and return a combined response
-
-
Constructor Summary
Constructors Constructor Description AdminHandlersProxy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.util.Pair<Future<org.apache.solr.common.util.NamedList<Object>>,org.apache.solr.client.solrj.SolrClient>
callRemoteNode(String nodeName, String endpoint, org.apache.solr.common.params.SolrParams params, ZkController zkController)
Makes a remote request and returns a future and the solr client.static boolean
maybeProxyToNodes(SolrQueryRequest req, SolrQueryResponse rsp, CoreContainer container)
-
-
-
Method Detail
-
maybeProxyToNodes
public static boolean maybeProxyToNodes(SolrQueryRequest req, SolrQueryResponse rsp, CoreContainer container) throws IOException, org.apache.solr.client.solrj.SolrServerException, InterruptedException
- Throws:
IOException
org.apache.solr.client.solrj.SolrServerException
InterruptedException
-
callRemoteNode
public static org.apache.solr.common.util.Pair<Future<org.apache.solr.common.util.NamedList<Object>>,org.apache.solr.client.solrj.SolrClient> callRemoteNode(String nodeName, String endpoint, org.apache.solr.common.params.SolrParams params, ZkController zkController) throws IOException, org.apache.solr.client.solrj.SolrServerException
Makes a remote request and returns a future and the solr client. The caller is responsible for closing the client- Throws:
IOException
org.apache.solr.client.solrj.SolrServerException
-
-