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 constructsFillInvoker
objects that communicate with content nodes over RPC. It also contains the RPC connection pool.- Author:
- ollivir
-
-
Field Summary
Fields Modifier and Type Field Description static com.yahoo.processing.request.CompoundName
dispatchCompression
The compression method which will be used with rpc dispatch.
-
Constructor Summary
Constructors Constructor Description RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.compress.Compressor.Compression
compress(Query query, byte[] payload)
com.yahoo.compress.Compressor
compressor()
void
deconstruct()
com.yahoo.search.dispatch.rpc.Client.NodeConnection
getConnection(int nodeId)
-
-
-
Method Detail
-
compressor
public com.yahoo.compress.Compressor compressor()
-
compress
public com.yahoo.compress.Compressor.Compression compress(Query query, byte[] payload)
-
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
-
-