Class AnalyticsShardRequestManager


  • public class AnalyticsShardRequestManager
    extends Object
    This class manages the requesting of shard responses from all shards in the queried collection.

    Shard Requests are sent to the AnalyticsHandler instead of the AnalyticsComponent, which is the entrance to the analytics component for all client requests.

    • Field Detail

      • replicaUrls

        protected transient List<String> replicaUrls
    • Method Detail

      • sendRequests

        public void sendRequests​(String collection,
                                 String zkHost)
                          throws IOException
        Send out shard requests to each shard in the given collection.
        Parameters:
        collection - that is being queried
        zkHost - of the solr cloud hosting the collection
        Throws:
        IOException - if an exception occurs while picking shards or sending requests
      • pickShards

        protected void pickShards​(String collection)
                           throws IOException
        Pick one replica from each shard to send the shard requests to.
        Parameters:
        collection - that is being queried
        Throws:
        IOException - if an exception occurs while finding replicas