Class 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

      Fields 
      Modifier and Type Field Description
      static com.yahoo.processing.request.CompoundName dispatchCompression
      The compression method which will be used with rpc dispatch.
      • Fields inherited from class com.yahoo.component.AbstractComponent

        isDeconstructable
    • Constructor Summary

      Constructors 
      Constructor Description
      RpcResourcePool​(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)  
    • Field Detail

      • dispatchCompression

        public static final com.yahoo.processing.request.CompoundName dispatchCompression
        The compression method which will be used with rpc dispatch. "lz4" (default) and "none" is supported.
    • Constructor Detail

      • RpcResourcePool

        @Inject
        public RpcResourcePool​(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)
    • 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 interface com.yahoo.component.Deconstructable
        Overrides:
        deconstruct in class com.yahoo.component.AbstractComponent