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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.compress.Compressor.Compression
    compress(Query query, byte[] payload)
     
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 Details

    • RpcResourcePool

      @Inject public RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig)
  • Method Details

    • 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