Class RpcResourcePool

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.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)  
    • 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)  
      • 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 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()
        Overrides:
        deconstruct in class com.yahoo.component.AbstractComponent