Class ModifiedCloudHttp2SolrClient
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrClient
-
- org.apache.manifoldcf.agents.output.solr.ModifiedCloudSolrClient
-
- org.apache.manifoldcf.agents.output.solr.ModifiedCloudHttp2SolrClient
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable
public class ModifiedCloudHttp2SolrClient extends ModifiedCloudSolrClient
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModifiedCloudHttp2SolrClient.BuilderConstructsCloudHttp2SolrClientinstances from provided configuration.-
Nested classes/interfaces inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedCloudSolrClient
ModifiedCloudSolrClient.RouteException, ModifiedCloudSolrClient.RouteResponse<T extends ModifiedLBSolrClient.Req>
-
-
Field Summary
-
Fields inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedCloudSolrClient
collectionStateCache, STATE_VERSION
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedModifiedCloudHttp2SolrClient(ModifiedCloudHttp2SolrClient.Builder builder)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 Modifier and Type Method Description voidclose()org.apache.solr.client.solrj.impl.ClusterStateProvidergetClusterStateProvider()ModifiedHttp2SolrClientgetHttpClient()ModifiedLBHttp2SolrClientgetLbClient()protected booleanwasCommError(java.lang.Throwable rootCause)-
Methods inherited from class org.apache.manifoldcf.agents.output.solr.ModifiedCloudSolrClient
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, 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
-
-
-
-
Constructor Detail
-
ModifiedCloudHttp2SolrClient
protected ModifiedCloudHttp2SolrClient(ModifiedCloudHttp2SolrClient.Builder builder)
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- aModifiedHttp2SolrClient.Builderwith the options used to create the client.
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classModifiedCloudSolrClient- Throws:
java.io.IOException
-
getLbClient
public ModifiedLBHttp2SolrClient getLbClient()
- Specified by:
getLbClientin classModifiedCloudSolrClient
-
getClusterStateProvider
public org.apache.solr.client.solrj.impl.ClusterStateProvider getClusterStateProvider()
- Specified by:
getClusterStateProviderin classModifiedCloudSolrClient
-
getHttpClient
public ModifiedHttp2SolrClient getHttpClient()
-
wasCommError
protected boolean wasCommError(java.lang.Throwable rootCause)
- Specified by:
wasCommErrorin classModifiedCloudSolrClient
-
-