Package com.yahoo.search.dispatch
Class SearchErrorInvoker
- java.lang.Object
-
- com.yahoo.search.dispatch.CloseableInvoker
-
- com.yahoo.search.dispatch.SearchInvoker
-
- com.yahoo.search.dispatch.SearchErrorInvoker
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SearchErrorInvoker extends SearchInvoker
A search invoker that will immediately produce an error that occurred during invoker construction. Currently used for invalid searchpath values and node failure- Author:
- ollivir
-
-
Constructor Summary
Constructors Constructor Description SearchErrorInvoker(ErrorMessage message)
SearchErrorInvoker(ErrorMessage message, Coverage coverage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvokerResult
getSearchResult(Execution execution)
protected void
release()
protected java.lang.Object
sendSearchRequest(Query query, java.lang.Object context)
protected void
setMonitor(ResponseMonitor<SearchInvoker> monitor)
-
Methods inherited from class com.yahoo.search.dispatch.SearchInvoker
distributionKey, errorResult, responseAvailable, search
-
Methods inherited from class com.yahoo.search.dispatch.CloseableInvoker
close, setFinalStatus, teardown
-
-
-
-
Constructor Detail
-
SearchErrorInvoker
public SearchErrorInvoker(ErrorMessage message, Coverage coverage)
-
SearchErrorInvoker
public SearchErrorInvoker(ErrorMessage message)
-
-
Method Detail
-
sendSearchRequest
protected java.lang.Object sendSearchRequest(Query query, java.lang.Object context) throws java.io.IOException
- Specified by:
sendSearchRequest
in classSearchInvoker
- Parameters:
query
- the query to sendcontext
- a context object that can be used to pass context among different invokers, e.g for reuse of preserialized data.- Returns:
- an object that can be passed to the next invocation of sendSearchRequest
- Throws:
java.io.IOException
-
getSearchResult
protected InvokerResult getSearchResult(Execution execution) throws java.io.IOException
- Specified by:
getSearchResult
in classSearchInvoker
- Throws:
java.io.IOException
-
release
protected void release()
- Specified by:
release
in classCloseableInvoker
-
setMonitor
protected void setMonitor(ResponseMonitor<SearchInvoker> monitor)
- Overrides:
setMonitor
in classSearchInvoker
-
-