public class SolrClientCloudManager extends Object implements SolrCloudManager
SolrCloudManager
using a SolrClientModifier and Type | Field and Description |
---|---|
protected CloudSolrClient |
solrClient |
Constructor and Description |
---|
SolrClientCloudManager(DistributedQueueFactory queueFactory,
CloudSolrClient solrClient) |
SolrClientCloudManager(DistributedQueueFactory queueFactory,
CloudSolrClient solrClient,
ObjectCache objectCache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ClusterStateProvider |
getClusterStateProvider() |
DistribStateManager |
getDistribStateManager() |
DistributedQueueFactory |
getDistributedQueueFactory() |
NodeStateProvider |
getNodeStateProvider() |
ObjectCache |
getObjectCache() |
TimeSource |
getTimeSource() |
SolrZkClient |
getZkClient() |
byte[] |
httpRequest(String url,
SolrRequest.METHOD method,
Map<String,String> headers,
String payload,
int timeout,
boolean followRedirects) |
boolean |
isClosed() |
SolrResponse |
request(SolrRequest req) |
protected final CloudSolrClient solrClient
public SolrClientCloudManager(DistributedQueueFactory queueFactory, CloudSolrClient solrClient)
public SolrClientCloudManager(DistributedQueueFactory queueFactory, CloudSolrClient solrClient, ObjectCache objectCache)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public boolean isClosed()
isClosed
in interface SolrCloseable
public ObjectCache getObjectCache()
getObjectCache
in interface SolrCloudManager
public TimeSource getTimeSource()
getTimeSource
in interface SolrCloudManager
public ClusterStateProvider getClusterStateProvider()
getClusterStateProvider
in interface SolrCloudManager
public NodeStateProvider getNodeStateProvider()
getNodeStateProvider
in interface SolrCloudManager
public DistribStateManager getDistribStateManager()
getDistribStateManager
in interface SolrCloudManager
public SolrResponse request(SolrRequest req) throws IOException
request
in interface SolrCloudManager
IOException
public byte[] httpRequest(String url, SolrRequest.METHOD method, Map<String,String> headers, String payload, int timeout, boolean followRedirects) throws IOException
httpRequest
in interface SolrCloudManager
IOException
public SolrZkClient getZkClient()
public DistributedQueueFactory getDistributedQueueFactory()
getDistributedQueueFactory
in interface SolrCloudManager
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.