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 SummaryNested 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.CloudSolrClientCloudSolrClient.RouteException, CloudSolrClient.RouteResponse<T extends LBSolrClient.Req>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringSTATE_VERSIONDeprecated.- 
Fields inherited from class org.apache.solr.client.solrj.impl.CloudSolrClientcollectionStateCache, locks, retryExpiryTimeNano
 - 
Fields inherited from class org.apache.solr.client.solrj.SolrClientdefaultCollection
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.CloudSolrClientcondenseResponse, condenseResponse, connect, connect, getClusterState, 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.SolrClientadd, 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, getDefaultCollection, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
 
- 
 
- 
- 
- 
Field Detail- 
STATE_VERSIONpublic static final String STATE_VERSION Deprecated.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CloudLegacySolrClientprotected 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- a- CloudLegacySolrClient.Builderwith the options used to create the client.
 
 
- 
 - 
Method Detail- 
createRoutesprotected Map<String,LBSolrClient.Req> createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField) Deprecated.- Overrides:
- createRoutesin class- CloudSolrClient
 
 - 
getRouteExceptionprotected CloudSolrClient.RouteException getRouteException(SolrException.ErrorCode serverError, NamedList<Throwable> exceptions, Map<String,? extends LBSolrClient.Req> routes) Deprecated.- Overrides:
- getRouteExceptionin class- CloudSolrClient
 
 - 
closepublic void close() throws IOExceptionDeprecated.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- CloudSolrClient
- Throws:
- IOException
 
 - 
getLbClientpublic LBHttpSolrClient getLbClient() Deprecated.- Specified by:
- getLbClientin class- CloudSolrClient
 
 - 
getHttpClientpublic org.apache.http.client.HttpClient getHttpClient() Deprecated.
 - 
getClusterStateProviderpublic ClusterStateProvider getClusterStateProvider() Deprecated.- Specified by:
- getClusterStateProviderin class- CloudSolrClient
 
 - 
wasCommErrorprotected boolean wasCommError(Throwable rootCause) Deprecated.- Specified by:
- wasCommErrorin class- CloudSolrClient
 
 
- 
 
-