Class ConfigServerBootstrap

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.vespa.config.server.ConfigServerBootstrap
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>, Runnable

public class ConfigServerBootstrap extends com.yahoo.component.AbstractComponent implements Runnable
Main component that bootstraps and starts config server threads. Starts RPC server without allowing config requests. If config server has been upgraded to a new version since the last time it was running it will redeploy all applications. If that is done successfully the RPC server will start allowing config requests and the health status code will change from 'initializing' to 'up'. If VIP status mode is VIP_STATUS_PROGRAMMATICALLY the config server will be put into rotation (start serving status.html with 200 OK), if the mode is VIP_STATUS_FILE a VIP status file is created or removed by some external program based on the health status code.
Author:
Ulf Lilleengen, hmusum
  • Field Details

  • Constructor Details

    • ConfigServerBootstrap

      @Inject public ConfigServerBootstrap(ApplicationRepository applicationRepository, RpcServer server, VersionState versionState, com.yahoo.container.jdisc.state.StateMonitor stateMonitor, com.yahoo.container.handler.VipStatus vipStatus, FileDirectory fileDirectory)
    • ConfigServerBootstrap

      protected ConfigServerBootstrap(ApplicationRepository applicationRepository, RpcServer server, VersionState versionState, com.yahoo.container.jdisc.state.StateMonitor stateMonitor, com.yahoo.container.handler.VipStatus vipStatus, com.yahoo.vespa.config.server.ConfigServerBootstrap.RedeployingApplicationsFails exitIfRedeployingApplicationsFails, com.yahoo.vespa.config.server.ConfigServerBootstrap.VipStatusMode vipStatusMode, FileDirectory fileDirectory)
  • Method Details

    • deconstruct

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

      public void run()
      Specified by:
      run in interface Runnable
    • start

      public void start()
    • configServerMaintenance

      public ConfigServerMaintenance configServerMaintenance()