Class ApplicationContainer

All Implemented Interfaces:
com.yahoo.cloud.config.ZookeeperServerConfig.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 final class ApplicationContainer extends Container implements com.yahoo.search.config.QrStartConfig.Producer, com.yahoo.cloud.config.ZookeeperServerConfig.Producer
A container that is typically used by container clusters set up from the user application.
Author:
gjoranv
See Also:
  • Constructor Details

  • Method Details

    • getConfig

      public void getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.search.config.QrStartConfig.Producer
    • 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
    • getJvmOptions

      public String getJvmOptions()
      Returns the jvm arguments this should start with
      Specified by:
      getJvmOptions in interface Service
      Overrides:
      getJvmOptions in class AbstractService
    • getConfig

      public void getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.cloud.config.ZookeeperServerConfig.Producer
    • jvmOmitStackTraceInFastThrowOption

      protected String jvmOmitStackTraceInFastThrowOption(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags)
      Overrides:
      jvmOmitStackTraceInFastThrowOption in class Container
    • 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