Class MetricsProxyContainer

All Implemented Interfaces:
ai.vespa.metricsproxy.http.metrics.NodeInfoConfig.Producer, ai.vespa.metricsproxy.metric.dimensions.NodeDimensionsConfig.Producer, ai.vespa.metricsproxy.rpc.RpcConnectorConfig.Producer, ai.vespa.metricsproxy.service.VespaServicesConfig.Producer, com.yahoo.config.ConfigInstance.Producer, com.yahoo.container.ComponentsConfig.Producer, com.yahoo.container.core.ContainerHttpConfig.Producer, com.yahoo.container.jdisc.ContainerMbusConfig.Producer, com.yahoo.container.jdisc.JdiscBindingsConfig.Producer, com.yahoo.container.QrConfig.Producer, com.yahoo.search.config.QrStartConfig.Producer, ConfigProducer, NetworkPortRequestor, Service, Serializable

public class MetricsProxyContainer extends Container implements ai.vespa.metricsproxy.metric.dimensions.NodeDimensionsConfig.Producer, ai.vespa.metricsproxy.http.metrics.NodeInfoConfig.Producer, ai.vespa.metricsproxy.rpc.RpcConnectorConfig.Producer, ai.vespa.metricsproxy.service.VespaServicesConfig.Producer, com.yahoo.search.config.QrStartConfig.Producer
Container running a metrics proxy.
Author:
gjoranv
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • myServiceType

      protected com.yahoo.config.model.api.container.ContainerServiceType myServiceType()
      Description copied from class: Container
      Subclasses must implement this for a custom service name.
      Specified by:
      myServiceType in class Container
    • jvmOmitStackTraceInFastThrowOption

      protected String jvmOmitStackTraceInFastThrowOption(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags)
      Overrides:
      jvmOmitStackTraceInFastThrowOption in class Container
    • getWantedPort

      public int getWantedPort()
      Description copied from class: AbstractService
      Returns the desired base port for the first instance of the service type. Returns '0' as default, which means that the service type should use the default port allocation mechanism.
      Specified by:
      getWantedPort in interface NetworkPortRequestor
      Overrides:
      getWantedPort in class Container
      Returns:
      The desired base port for the first instance of the service type.
    • requiresWantedPort

      public boolean requiresWantedPort()
      Description copied from class: Container
      First container must run on ports familiar to the user.
      Specified by:
      requiresWantedPort in interface NetworkPortRequestor
      Overrides:
      requiresWantedPort in class Container
      Returns:
      false by default
    • allocatePorts

      public void allocatePorts(int start, PortAllocBridge from)
      Description copied from interface: NetworkPortRequestor
      allocate the ports you need
      Specified by:
      allocatePorts in interface NetworkPortRequestor
      Overrides:
      allocatePorts in class Container
    • getPortCount

      public int getPortCount()
      Description copied from interface: NetworkPortRequestor
      Returns the number of ports needed by this service. User-defined ports for container http servers should not be counted, as those ports are required to be outside Vespa's port range.
      Specified by:
      getPortCount in interface NetworkPortRequestor
      Overrides:
      getPortCount in class Container
      Returns:
      the number of ports needed by the Container
    • getConfig

      public void getConfig(ai.vespa.metricsproxy.rpc.RpcConnectorConfig.Builder builder)
      Specified by:
      getConfig in interface ai.vespa.metricsproxy.rpc.RpcConnectorConfig.Producer
    • getConfig

      public void getConfig(ai.vespa.metricsproxy.service.VespaServicesConfig.Builder builder)
      Specified by:
      getConfig in interface ai.vespa.metricsproxy.service.VespaServicesConfig.Producer
    • getConfig

      public void getConfig(ai.vespa.metricsproxy.metric.dimensions.NodeDimensionsConfig.Builder builder)
      Specified by:
      getConfig in interface ai.vespa.metricsproxy.metric.dimensions.NodeDimensionsConfig.Producer
    • getConfig

      public void getConfig(ai.vespa.metricsproxy.http.metrics.NodeInfoConfig.Builder builder)
      Specified by:
      getConfig in interface ai.vespa.metricsproxy.http.metrics.NodeInfoConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.search.config.QrStartConfig.Producer
    • defaultPreload

      protected String defaultPreload()
      Overrides:
      defaultPreload in class AbstractService
    • getPreShutdownCommand

      public Optional<String> getPreShutdownCommand()
      Description copied from interface: Service
      Services that wish that a command should be run before shutdown should return the command here. The command will be executed by the config sentinel before sending SIGTERM to the service. The command is executed without a timeout.
      Specified by:
      getPreShutdownCommand in interface Service
      Overrides:
      getPreShutdownCommand in class AbstractService