Class SolrClientCloudManager
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.SolrClientCloudManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SolrCloudManager,SolrCloseable
public class SolrClientCloudManager extends Object implements SolrCloudManager
Class that implementsSolrCloudManagerusing a SolrClient
-
-
Field Summary
Fields Modifier and Type Field Description protected CloudSolrClientsolrClient
-
Constructor Summary
Constructors Constructor Description SolrClientCloudManager(DistributedQueueFactory queueFactory, CloudSolrClient solrClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ClusterStateProvidergetClusterStateProvider()DistribStateManagergetDistribStateManager()DistributedQueueFactorygetDistributedQueueFactory()NodeStateProvidergetNodeStateProvider()ObjectCachegetObjectCache()TimeSourcegetTimeSource()byte[]httpRequest(String url, SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects)booleanisClosed()SolrResponserequest(SolrRequest req)
-
-
-
Field Detail
-
solrClient
protected final CloudSolrClient solrClient
-
-
Constructor Detail
-
SolrClientCloudManager
public SolrClientCloudManager(DistributedQueueFactory queueFactory, CloudSolrClient solrClient)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceSolrCloseable
-
getObjectCache
public ObjectCache getObjectCache()
- Specified by:
getObjectCachein interfaceSolrCloudManager
-
getTimeSource
public TimeSource getTimeSource()
- Specified by:
getTimeSourcein interfaceSolrCloudManager
-
getClusterStateProvider
public ClusterStateProvider getClusterStateProvider()
- Specified by:
getClusterStateProviderin interfaceSolrCloudManager
-
getNodeStateProvider
public NodeStateProvider getNodeStateProvider()
- Specified by:
getNodeStateProviderin interfaceSolrCloudManager
-
getDistribStateManager
public DistribStateManager getDistribStateManager()
- Specified by:
getDistribStateManagerin interfaceSolrCloudManager
-
request
public SolrResponse request(SolrRequest req) throws IOException
- Specified by:
requestin interfaceSolrCloudManager- Throws:
IOException
-
httpRequest
public byte[] httpRequest(String url, SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects) throws IOException
- Specified by:
httpRequestin interfaceSolrCloudManager- Throws:
IOException
-
getDistributedQueueFactory
public DistributedQueueFactory getDistributedQueueFactory()
- Specified by:
getDistributedQueueFactoryin interfaceSolrCloudManager
-
-