Class CloudLegacySolrClient
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrClient
-
- org.apache.solr.client.solrj.impl.CloudSolrClient
-
- org.apache.solr.client.solrj.impl.CloudLegacySolrClient
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
@Deprecated(since="9.0") public class CloudLegacySolrClient extends CloudSolrClient
Deprecated.Please useCloudSolrClientSolrJ client class to communicate with SolrCloud. Instances of this class communicate with Zookeeper to discover Solr endpoints for SolrCloud collections, and then use theLBHttpSolrClientto issue requests.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloudLegacySolrClient.BuilderDeprecated.ConstructsCloudLegacySolrClientinstances from provided configuration.-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
CloudSolrClient.RouteException, CloudSolrClient.RouteResponse<T extends LBSolrClient.Req>
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTATE_VERSIONDeprecated.-
Fields inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
collectionStateCache, defaultCollection, locks, retryExpiryTimeNano
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCloudLegacySolrClient(CloudLegacySolrClient.Builder builder)Deprecated.Create a new client object that connects to Zookeeper and is always aware of the SolrCloud state.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.protected Map<String,LBSolrClient.Req>createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField)Deprecated.ClusterStateProvidergetClusterStateProvider()Deprecated.org.apache.http.client.HttpClientgetHttpClient()Deprecated.LBHttpSolrClientgetLbClient()Deprecated.protected CloudSolrClient.RouteExceptiongetRouteException(SolrException.ErrorCode serverError, NamedList<Throwable> exceptions, Map<String,? extends LBSolrClient.Req> routes)Deprecated.protected booleanwasCommError(Throwable rootCause)Deprecated.-
Methods inherited from class org.apache.solr.client.solrj.impl.CloudSolrClient
condenseResponse, condenseResponse, connect, connect, getClusterState, getDefaultCollection, getDocCollection, getMinAchievedReplicationFactor, getParser, getRequestWriter, getShardReplicationFactor, isDirectUpdatesToLeadersOnly, isParallelUpdates, isUpdatesToLeaders, objectList, request, requestWithRetryOnStaleState, sendRequest, setCollectionCacheTTl, setDefaultCollection, setParallelCacheRefreshes, setParser, setRequestWriter, setRetryExpiryTime
-
Methods 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 Detail
-
STATE_VERSION
public static final String STATE_VERSION
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloudLegacySolrClient
protected CloudLegacySolrClient(CloudLegacySolrClient.Builder builder)
Deprecated.Create a new client object that connects to Zookeeper and is always aware of the SolrCloud state. If there is a fully redundant Zookeeper quorum and SolrCloud has enough replicas for every shard in a collection, there is no single point of failure. Updates will be sent to shard leaders by default.- Parameters:
builder- aCloudLegacySolrClient.Builderwith the options used to create the client.
-
-
Method Detail
-
createRoutes
protected Map<String,LBSolrClient.Req> createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField)
Deprecated.- Overrides:
createRoutesin classCloudSolrClient
-
getRouteException
protected CloudSolrClient.RouteException getRouteException(SolrException.ErrorCode serverError, NamedList<Throwable> exceptions, Map<String,? extends LBSolrClient.Req> routes)
Deprecated.- Overrides:
getRouteExceptionin classCloudSolrClient
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCloudSolrClient- Throws:
IOException
-
getLbClient
public LBHttpSolrClient getLbClient()
Deprecated.- Specified by:
getLbClientin classCloudSolrClient
-
getHttpClient
public org.apache.http.client.HttpClient getHttpClient()
Deprecated.
-
getClusterStateProvider
public ClusterStateProvider getClusterStateProvider()
Deprecated.- Specified by:
getClusterStateProviderin classCloudSolrClient
-
wasCommError
protected boolean wasCommError(Throwable rootCause)
Deprecated.- Specified by:
wasCommErrorin classCloudSolrClient
-
-