public class Dispatcher
extends com.yahoo.component.AbstractComponent
SearchInvoker
and FillInvoker
objects based
on query properties and general system status. The caller can then use the provided
invocation object to execute the search or fill.
This class is multithread safe.Constructor and Description |
---|
Dispatcher(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig,
FS4ResourcePool fs4ResourcePool,
int containerClusterSize,
com.yahoo.container.handler.VipStatus vipStatus) |
Dispatcher(Map<Integer,com.yahoo.search.dispatch.Client.NodeConnection> nodeConnections,
com.yahoo.search.dispatch.Client client)
For testing
|
Modifier and Type | Method and Description |
---|---|
void |
deconstruct() |
Optional<FillInvoker> |
getFillInvoker(Result result,
VespaBackEndSearcher searcher,
DocumentDatabase documentDb,
FS4InvokerFactory fs4InvokerFactory) |
Optional<SearchInvoker> |
getSearchInvoker(Query query,
FS4InvokerFactory fs4InvokerFactory) |
SearchCluster |
searchCluster()
Returns the search cluster this dispatches to
|
public Dispatcher(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig, FS4ResourcePool fs4ResourcePool, int containerClusterSize, com.yahoo.container.handler.VipStatus vipStatus)
public SearchCluster searchCluster()
public void deconstruct()
deconstruct
in class com.yahoo.component.AbstractComponent
public Optional<FillInvoker> getFillInvoker(Result result, VespaBackEndSearcher searcher, DocumentDatabase documentDb, FS4InvokerFactory fs4InvokerFactory)
public Optional<SearchInvoker> getSearchInvoker(Query query, FS4InvokerFactory fs4InvokerFactory)
Copyright © 2018. All rights reserved.