Package com.yahoo.search.dispatch.rpc
Class RpcResourcePool
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.search.dispatch.rpc.RpcResourcePool
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
public class RpcResourcePool
extends com.yahoo.component.AbstractComponent
RpcResourcePool constructs
FillInvoker
objects that communicate with content nodes over RPC. It also contains
the RPC connection pool.- Author:
- ollivir
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.yahoo.processing.request.CompoundName
The compression method which will be used with rpc dispatch.Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorDescriptionRpcResourcePool
(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.compress.Compressor.Compression
com.yahoo.compress.Compressor
void
com.yahoo.search.dispatch.rpc.Client.NodeConnection
getConnection
(int nodeId) Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Field Details
-
dispatchCompression
public static final com.yahoo.processing.request.CompoundName dispatchCompressionThe compression method which will be used with rpc dispatch. "lz4" (default) and "none" is supported.
-
-
Constructor Details
-
RpcResourcePool
@Inject public RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)
-
-
Method Details
-
compressor
public com.yahoo.compress.Compressor compressor() -
compress
-
getConnection
public com.yahoo.search.dispatch.rpc.Client.NodeConnection getConnection(int nodeId) -
deconstruct
public void deconstruct()- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-