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:
Closeable
,AutoCloseable
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
ConstructorDescriptionSearchErrorInvoker
(ErrorMessage message) SearchErrorInvoker
(ErrorMessage message, Coverage coverage) -
Method Summary
Modifier and TypeMethodDescriptionprotected InvokerResult
getSearchResult
(Execution execution) protected void
release()
protected Object
sendSearchRequest
(Query query, 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 Details
-
SearchErrorInvoker
-
SearchErrorInvoker
-
-
Method Details
-
sendSearchRequest
- 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:
IOException
-
getSearchResult
- Specified by:
getSearchResult
in classSearchInvoker
- Throws:
IOException
-
release
protected void release()- Specified by:
release
in classCloseableInvoker
-
setMonitor
- Overrides:
setMonitor
in classSearchInvoker
-