org.apache.solr.handler.component
Class HttpShardHandler

java.lang.Object
  extended by org.apache.solr.handler.component.ShardHandler
      extended by org.apache.solr.handler.component.HttpShardHandler

public class HttpShardHandler
extends ShardHandler


Constructor Summary
HttpShardHandler(HttpShardHandlerFactory httpShardHandlerFactory, org.apache.http.client.HttpClient httpClient)
           
 
Method Summary
 void cancelAll()
           
 void checkDistributed(ResponseBuilder rb)
           
 void submit(ShardRequest sreq, String shard, ModifiableSolrParams params)
           
 ShardResponse takeCompletedIncludingErrors()
          returns a ShardResponse of the last response correlated with a ShardRequest.
 ShardResponse takeCompletedOrError()
          returns a ShardResponse of the last response correlated with a ShardRequest, or immediately returns a ShardResponse if there was an error detected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpShardHandler

public HttpShardHandler(HttpShardHandlerFactory httpShardHandlerFactory,
                        org.apache.http.client.HttpClient httpClient)
Method Detail

submit

public void submit(ShardRequest sreq,
                   String shard,
                   ModifiableSolrParams params)
Specified by:
submit in class ShardHandler

takeCompletedIncludingErrors

public ShardResponse takeCompletedIncludingErrors()
returns a ShardResponse of the last response correlated with a ShardRequest. This won't return early if it runs into an error.

Specified by:
takeCompletedIncludingErrors in class ShardHandler

takeCompletedOrError

public ShardResponse takeCompletedOrError()
returns a ShardResponse of the last response correlated with a ShardRequest, or immediately returns a ShardResponse if there was an error detected

Specified by:
takeCompletedOrError in class ShardHandler

cancelAll

public void cancelAll()
Specified by:
cancelAll in class ShardHandler

checkDistributed

public void checkDistributed(ResponseBuilder rb)
Specified by:
checkDistributed in class ShardHandler


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.