Class RpcConnector

java.lang.Object
com.yahoo.component.AbstractComponent
ai.vespa.metricsproxy.rpc.RpcConnector
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>

public final class RpcConnector extends com.yahoo.component.AbstractComponent
Contains the connector for the rpc server, to prevent it from going down after component reconfiguration. This will only be recreated if the rpc port changes, which should never happen under normal circumstances.
Author:
gjoranv
  • Field Summary

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMethod(com.yahoo.jrt.Method method)
    Adds a method.
    void
     
    int
     
    void
     

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

  • Method Details

    • port

      public int port()
    • addMethod

      public void addMethod(com.yahoo.jrt.Method method)
      Adds a method. If a method with the same name already exists, it will be replaced.
      Parameters:
      method - The method to add.
    • stop

      public void stop()
    • deconstruct

      public void deconstruct()
      Specified by:
      deconstruct in interface com.yahoo.component.Deconstructable
      Overrides:
      deconstruct in class com.yahoo.component.AbstractComponent