Package com.lucidworks.cloud.api.solr
Class PipelineCloudSolrClient
java.lang.Object
org.apache.solr.client.solrj.SolrClient
org.apache.solr.client.solrj.impl.CloudSolrClient
com.lucidworks.cloud.api.solr.PipelineCloudSolrClient
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
public class PipelineCloudSolrClient
extends org.apache.solr.client.solrj.impl.CloudSolrClient
Create a new client object that connects to Zookeeper and is always aware
of the SolrCloud state. Updates will be sent to shard leaders by default.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
org.apache.solr.client.solrj.impl.CloudSolrClient.Builder, org.apache.solr.client.solrj.impl.CloudSolrClient.RouteException, org.apache.solr.client.solrj.impl.CloudSolrClient.RouteResponse<T extends org.apache.solr.client.solrj.impl.LBSolrClient.Req> -
Field Summary
FieldsFields inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
collectionStateCache, STATE_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionPipelineCloudSolrClient(com.lucidworks.apollo.common.models.SearchCluster searchCluster) PipelineCloudSolrClient(org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider zkClientClusterStateProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.impl.ClusterStateProviderprotected org.apache.solr.client.solrj.impl.LBSolrClientprotected booleanMethods inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
close, condenseResponse, condenseResponse, connect, connect, createRoutes, getClusterState, getDefaultCollection, getDocCollection, getMinAchievedReplicationFactor, getParser, getRequestWriter, getRouteException, getShardReplicationFactor, isDirectUpdatesToLeadersOnly, isParallelUpdates, isUpdatesToLeaders, objectList, request, requestWithRetryOnStaleState, sendRequest, setCollectionCacheTTl, setDefaultCollection, setParallelCacheRefreshes, setParser, setRequestWriter, setRetryExpiryTimeMethods inherited from class org.apache.solr.client.solrj.SolrClient
add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, getContext, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
PipelineCloudSolrClient
public PipelineCloudSolrClient(org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider zkClientClusterStateProvider) -
PipelineCloudSolrClient
public PipelineCloudSolrClient(com.lucidworks.apollo.common.models.SearchCluster searchCluster)
-
-
Method Details
-
getLbClient
protected org.apache.solr.client.solrj.impl.LBSolrClient getLbClient()- Specified by:
getLbClientin classorg.apache.solr.client.solrj.impl.CloudSolrClient
-
getClusterStateProvider
public org.apache.solr.client.solrj.impl.ClusterStateProvider getClusterStateProvider()- Specified by:
getClusterStateProviderin classorg.apache.solr.client.solrj.impl.CloudSolrClient
-
wasCommError
- Specified by:
wasCommErrorin classorg.apache.solr.client.solrj.impl.CloudSolrClient
-