Package com.yahoo.vespa.config.server
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 Summary
FieldsFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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) ConfigServerBootstrap
(ApplicationRepository applicationRepository, RpcServer server, VersionState versionState, com.yahoo.container.jdisc.state.StateMonitor stateMonitor, com.yahoo.container.handler.VipStatus vipStatus, FileDirectory fileDirectory) -
Method Summary
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Field Details
-
versionState
-
-
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