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 implementsSolrCloudManager
using a SolrClient
-
-
Field Summary
Fields Modifier and Type Field Description protected CloudSolrClient
solrClient
-
Constructor Summary
Constructors Constructor Description SolrClientCloudManager(DistributedQueueFactory queueFactory, CloudSolrClient solrClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ClusterStateProvider
getClusterStateProvider()
DistribStateManager
getDistribStateManager()
DistributedQueueFactory
getDistributedQueueFactory()
NodeStateProvider
getNodeStateProvider()
ObjectCache
getObjectCache()
TimeSource
getTimeSource()
byte[]
httpRequest(String url, SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects)
boolean
isClosed()
SolrResponse
request(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceSolrCloseable
-
getObjectCache
public ObjectCache getObjectCache()
- Specified by:
getObjectCache
in interfaceSolrCloudManager
-
getTimeSource
public TimeSource getTimeSource()
- Specified by:
getTimeSource
in interfaceSolrCloudManager
-
getClusterStateProvider
public 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 SolrResponse request(SolrRequest req) throws IOException
- Specified by:
request
in 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:
httpRequest
in interfaceSolrCloudManager
- Throws:
IOException
-
getDistributedQueueFactory
public DistributedQueueFactory getDistributedQueueFactory()
- Specified by:
getDistributedQueueFactory
in interfaceSolrCloudManager
-
-