|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.handler.component.ShardHandlerFactory
org.apache.solr.handler.component.HttpShardHandlerFactory
public class HttpShardHandlerFactory
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
HttpShardHandlerFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
|
ShardHandler |
getShardHandler()
Get ShardHandler that uses the default http client. |
ShardHandler |
getShardHandler(org.apache.http.client.HttpClient httpClient)
Get ShardHandler that uses custom http client. |
void |
init(PluginInfo info)
|
LBHttpSolrServer.Rsp |
makeLoadBalancedRequest(QueryRequest req,
List<String> urls)
Makes a request to one or more of the given urls, using the configured load balancer. |
List<String> |
makeURLList(String shard)
Creates a randomized list of urls for the given shard. |
CompletionService |
newCompletionService()
Creates a new completion service for use by a single set of distributed requests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger log
| Constructor Detail |
|---|
public HttpShardHandlerFactory()
| Method Detail |
|---|
public ShardHandler getShardHandler()
ShardHandler that uses the default http client.
getShardHandler in class ShardHandlerFactorypublic ShardHandler getShardHandler(org.apache.http.client.HttpClient httpClient)
ShardHandler that uses custom http client.
public void init(PluginInfo info)
init in interface PluginInfoInitializedpublic void close()
close in class ShardHandlerFactory
public LBHttpSolrServer.Rsp makeLoadBalancedRequest(QueryRequest req,
List<String> urls)
throws SolrServerException,
IOException
req - The solr search request that should be sent through the load balancerurls - The list of solr server urls to load balance across
SolrServerException
IOExceptionpublic List<String> makeURLList(String shard)
shard - the urls for the shard (minus "http://"), separated by '|'
public CompletionService newCompletionService()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||