Class SolrClientCloudManager
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.SolrClientCloudManager
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SolrCloudManager
,org.apache.solr.common.SolrCloseable
public class SolrClientCloudManager extends Object implements SolrCloudManager
Class that implementsSolrCloudManager
using a SolrClient
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.solr.client.solrj.impl.CloudLegacySolrClient
solrClient
-
Constructor Summary
Constructors Constructor Description SolrClientCloudManager(org.apache.solr.client.solrj.impl.CloudLegacySolrClient solrClient)
SolrClientCloudManager(org.apache.solr.client.solrj.impl.CloudLegacySolrClient solrClient, org.apache.solr.common.util.ObjectCache objectCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.solr.client.solrj.impl.ClusterStateProvider
getClusterStateProvider()
DistribStateManager
getDistribStateManager()
NodeStateProvider
getNodeStateProvider()
org.apache.solr.common.util.ObjectCache
getObjectCache()
org.apache.solr.common.util.TimeSource
getTimeSource()
SolrZkClient
getZkClient()
byte[]
httpRequest(String url, org.apache.solr.client.solrj.SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects)
boolean
isClosed()
<T extends org.apache.solr.client.solrj.SolrResponse>
Trequest(org.apache.solr.client.solrj.SolrRequest<T> req)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.client.solrj.cloud.SolrCloudManager
getClusterState
-
-
-
-
Constructor Detail
-
SolrClientCloudManager
public SolrClientCloudManager(org.apache.solr.client.solrj.impl.CloudLegacySolrClient solrClient)
-
SolrClientCloudManager
public SolrClientCloudManager(org.apache.solr.client.solrj.impl.CloudLegacySolrClient solrClient, org.apache.solr.common.util.ObjectCache objectCache)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceorg.apache.solr.common.SolrCloseable
-
getObjectCache
public org.apache.solr.common.util.ObjectCache getObjectCache()
- Specified by:
getObjectCache
in interfaceSolrCloudManager
-
getTimeSource
public org.apache.solr.common.util.TimeSource getTimeSource()
- Specified by:
getTimeSource
in interfaceSolrCloudManager
-
getClusterStateProvider
public org.apache.solr.client.solrj.impl.ClusterStateProvider getClusterStateProvider()
- Specified by:
getClusterStateProvider
in interfaceSolrCloudManager
-
getNodeStateProvider
public NodeStateProvider getNodeStateProvider()
- Specified by:
getNodeStateProvider
in interfaceSolrCloudManager
-
getDistribStateManager
public DistribStateManager getDistribStateManager()
- Specified by:
getDistribStateManager
in interfaceSolrCloudManager
-
request
public <T extends org.apache.solr.client.solrj.SolrResponse> T request(org.apache.solr.client.solrj.SolrRequest<T> req) throws IOException
- Specified by:
request
in interfaceSolrCloudManager
- Throws:
IOException
-
httpRequest
public byte[] httpRequest(String url, org.apache.solr.client.solrj.SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects) throws IOException
- Specified by:
httpRequest
in interfaceSolrCloudManager
- Throws:
IOException
-
getZkClient
public SolrZkClient getZkClient()
-
-