Package com.yahoo.search.dispatch.rpc
Class RpcSearchInvoker
- java.lang.Object
-
- com.yahoo.search.dispatch.CloseableInvoker
-
- com.yahoo.search.dispatch.SearchInvoker
-
- com.yahoo.search.dispatch.rpc.RpcSearchInvoker
-
- All Implemented Interfaces:
com.yahoo.search.dispatch.rpc.Client.ResponseReceiver
,java.io.Closeable
,java.lang.AutoCloseable
public class RpcSearchInvoker extends SearchInvoker implements com.yahoo.search.dispatch.rpc.Client.ResponseReceiver
SearchInvoker
implementation using RPC- Author:
- ollivir
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvokerResult
getSearchResult(Execution execution)
void
receive(com.yahoo.search.dispatch.rpc.Client.ResponseOrError<com.yahoo.search.dispatch.rpc.Client.ProtobufResponse> response)
protected void
release()
protected java.lang.Object
sendSearchRequest(Query query, java.lang.Object incomingContext)
-
Methods inherited from class com.yahoo.search.dispatch.SearchInvoker
distributionKey, errorResult, responseAvailable, search, setMonitor
-
Methods inherited from class com.yahoo.search.dispatch.CloseableInvoker
close, setFinalStatus, teardown
-
-
-
-
Method Detail
-
sendSearchRequest
protected java.lang.Object sendSearchRequest(Query query, java.lang.Object incomingContext)
- Specified by:
sendSearchRequest
in classSearchInvoker
- Parameters:
query
- the query to sendincomingContext
- 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
-
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
-
receive
public void receive(com.yahoo.search.dispatch.rpc.Client.ResponseOrError<com.yahoo.search.dispatch.rpc.Client.ProtobufResponse> response)
- Specified by:
receive
in interfacecom.yahoo.search.dispatch.rpc.Client.ResponseReceiver
-
-