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 void
sendSearchRequest(Query query)
-
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 void sendSearchRequest(Query query)
- Specified by:
sendSearchRequest
in classSearchInvoker
-
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
-
-