Package com.yahoo.search.dispatch.rpc
Class RpcResourcePool
java.lang.Object
com.yahoo.search.dispatch.rpc.RpcResourcePool
- All Implemented Interfaces:
RpcConnectionPool
,AutoCloseable
RpcResourcePool constructs
FillInvoker
objects that communicate with content nodes over RPC. It also contains
the RPC connection pool.- Author:
- ollivir
-
Constructor Summary
ConstructorDescriptionRpcResourcePool
(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig, com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.yahoo.search.dispatch.rpc.Client.NodeConnection
getConnection
(int nodeId) updateNodes
(com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig) Will return a list of items that need a delayed close
-
Constructor Details
-
RpcResourcePool
public RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig, com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig)
-
-
Method Details
-
updateNodes
public Collection<AutoCloseable> updateNodes(com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig) Will return a list of items that need a delayed close -
getConnection
public com.yahoo.search.dispatch.rpc.Client.NodeConnection getConnection(int nodeId) - Specified by:
getConnection
in interfaceRpcConnectionPool
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-