public class AnalyticsShardRequestManager extends Object
Shard Requests are sent to the AnalyticsHandler
instead of the AnalyticsComponent
,
which is the entrance to the analytics component for all client requests.
Modifier and Type | Class and Description |
---|---|
protected class |
AnalyticsShardRequestManager.AnalyticsShardRequester
A class that opens a connection to a given solr instance, a selected replica of the queried collection,
and sends a analytics request to the
AnalyticsHandler . |
Modifier and Type | Field and Description |
---|---|
protected CloudSolrClient |
cloudSolrClient |
protected List<String> |
replicaUrls |
Constructor and Description |
---|
AnalyticsShardRequestManager(SolrParams params,
AnalyticsRequestManager manager) |
Modifier and Type | Method and Description |
---|---|
protected void |
pickShards(String collection)
Pick one replica from each shard to send the shard requests to.
|
void |
sendRequests(String collection,
String zkHost)
Send out shard requests to each shard in the given collection.
|
protected transient CloudSolrClient cloudSolrClient
public AnalyticsShardRequestManager(SolrParams params, AnalyticsRequestManager manager)
public void sendRequests(String collection, String zkHost) throws IOException
collection
- that is being queriedzkHost
- of the solr cloud hosting the collectionIOException
- if an exception occurs while picking shards or sending requestsprotected void pickShards(String collection) throws IOException
collection
- that is being queriedIOException
- if an exception occurs while finding replicasCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.